Matsya Purana — The Origin of Yajña in Tretā Yuga and the Debate on Animal Sacrifice vs. Non-...
ब्रह्मणः कर्मसंन्यासाद् वैराग्यात्प्रकृतेर्लयम् ज्ञानात्प्राप्नोति कैवल्यं पञ्चैता गतयः स्मृताः //
brahmaṇaḥ karmasaṃnyāsād vairāgyātprakṛterlayam jñānātprāpnoti kaivalyaṃ pañcaitā gatayaḥ smṛtāḥ //
Through renunciation of action (karma-saṃnyāsa) one attains Brahman; through dispassion (vairāgya) one attains dissolution into Prakṛti; through knowledge (jñāna) one attains Kaivalya. These five courses (gati) are remembered in the tradition.
It speaks of an inner dissolution (laya) into Prakṛti as a spiritual attainment born of vairāgya, not the cosmic deluge-pralaya narrative.
It frames a progression where disciplined action can culminate in karma-saṃnyāsa (renunciation) and jñāna; for kings/householders, it supports performing dharma while cultivating detachment that can mature into liberation-oriented life-stages.
No Vāstu or iconographic rule is stated; the verse is philosophical, outlining liberation-path terminology (saṃnyāsa, vairāgya, jñāna, kaivalya) rather than ritual or temple-construction procedure.