Śrīmad-Bhāgavatam · Text 8.8.2
Who is speaking and story frame
तामग्निहोत्रीमृषयो जगृहुर्ब्रह्मवादिन: ।
यज्ञस्य देवयानस्य मेध्याय हविषे नृप ॥ २ ॥
tām agni-hotrīm ṛṣayo
jagṛhur brahma-vādinaḥ
yajñasya deva-yānasya
medhyāya haviṣe nṛpa
O King Parīkṣit, great sages who were completely aware of the Vedic ritualistic ceremonies took charge of that surabhi cow, which produced all the yogurt, milk and ghee absolutely necessary for offering oblations into the fire. They did this just for the sake of pure ghee, which they wanted for the performance of sacrifices to elevate themselves to the higher planetary systems, up to Brahmaloka.
Read Śrīla Prabhupāda's purport on Vedabase.io