Śrīmad-Bhāgavatam · Text 9.14.43
Who is speaking and story frame
स्थालीं न्यस्य वने गत्वा गृहानाध्यायतो निशि ।
त्रेतायां सम्प्रवृत्तायां मनसि त्रय्यवर्तत ॥ ४३ ॥
sthālīṁ nyasya vane gatvā
gṛhān ādhyāyato niśi
tretāyāṁ sampravṛttāyāṁ
manasi trayy avartata
King Purūravā then left Agnisthālī in the forest and returned home, where he meditated all night upon Urvaśī. In the course of his meditation, the Tretā millennium began, and therefore the principles of the three Vedas, including the process of performing yajña to fulfill fruitive activities, appeared within his heart.
Read Śrīla Prabhupāda's purport on Vedabase.io