Matsya Purana — The Chapter on Conquering Anger: Forbearance
पुंसो ये नाभिनन्दन्ति वृत्तेनाभिजनेन च न तेषु निवसेत्प्राज्ञः श्रेयोर्थी पापबुद्धिषु //
puṃso ye nābhinandanti vṛttenābhijanena ca na teṣu nivasetprājñaḥ śreyorthī pāpabuddhiṣu //
Those who do not appreciate a man for his good conduct and for his noble lineage—among such sinful-minded people, a wise person who seeks true welfare should not dwell or keep company.
This verse does not discuss Pralaya; it gives ethical guidance on where a wise seeker of welfare should (and should not) reside—namely, avoiding the company of sinful-minded people.
It supports Rajadharma and gṛhastha-dharma by advising discernment in association: a ruler or householder should not depend upon or live among those who despise virtue and noble conduct, since such company corrupts judgment and undermines righteous governance and family life.
No direct Vāstu or ritual rule appears here; the takeaway is preparatory—purity of association (satsaṅga) is treated as a foundation for successful dharmic rites and disciplined living.