sthalim nyasya vane gatva
grhan adhyayato nisi
manasi trayy avartata
sthalim—the woman Agnisthali; nyasya—immediately giving up; vane—in the forest; gatva—on returning; grhan—at home; adhyayatah—began to meditate; nisi—the whole night; tretayam—when the Treta millennium; sampravrttayam—was just on the point of beginning; manasi—in his mind; trayi—the principles of the three Vedas; avartata—became revealed.
King Pururava then left Agnisthali in the forest and returned home, where he meditated all night upon Urvasi. In the course of his meditation, the Treta millennium began, and therefore the principles of the three Vedas, including the process of performing yajna to fulfill fruitive activities, appeared within his heart.
It is said, tretayam yajato makhaih: in Treta-yuga, if one performed yajnas, he would get the results of those yajnas. By performing visnu-yajna specifically, one could even achieve the lotus feet of the Supreme Personality of Godhead. Of course, yajna is intended to please the Supreme Personality of Godhead. While Pururava was meditating upon Urvasi, the Treta-yuga began, and therefore the Vedic yajnas were revealed in his heart. But Pururava was a materialistic man, especially interested in enjoying the senses. Yajnas for enjoyment of the senses are called karma-kandiya-yajnas. Therefore, he decided to perform karma-kandiya-yajnas to fulfill his lusty desires. In other words, karma-kandiya-yajnas are meant for sensuous persons, whereas yajna should actually be performed to please the Supreme Personality of Godhead. To please the Supreme Personality of Godhead in Kali-yuga, the sankirtana-yajna is recommended. Yajnaih sankirtana-prayair yajanti hi sumedhasah [SB 11.5.32]. Only those who are very intelligent take to sankirtana-yajna to fulfill all their desires, material and spiritual, whereas those who are lusty for sense enjoyment perform karma-kandiya-yajnas.
Link to this page: https://prabhupadabooks.com/sb/9/14/43