Matsya Purana — The Advent of Narasiṃha and Hiraṇyakaśipu’s Weapon-Assault
मरुतो देवगन्धर्वा ऋषयश्च तपोधनाः नागा यक्षाः पिशाचाश्च राक्षसा भीमविक्रमाः //
maruto devagandharvā ṛṣayaśca tapodhanāḥ nāgā yakṣāḥ piśācāśca rākṣasā bhīmavikramāḥ //
The Maruts, the divine Gandharvas, and the sages rich in ascetic power; the Nāgas, Yakṣas, Piśācas, and the Rākṣasas of dreadful might—(all are spoken of here).
It does not describe Pralaya directly; it catalogs classes of beings in the cosmic order, implying a structured universe populated by gods, sages, and non-human races that persist across cycles.
By naming multiple visible and invisible communities (gods, sages, spirits), it supports the Purāṇic ethic that a king/householder should uphold dharma through ritual propriety, protection, and respectful conduct toward all orders of beings.
No explicit Vāstu rule appears, but such enumerations commonly function as ritual-context reminders: offerings and protective rites are performed with awareness of different beings (e.g., Yakṣas, Nāgas, Piśācas) associated with directions, sites, and precincts.