Śrīmad-Bhāgavatam · Text 8.1.18
Who is speaking and story frame
तांस्तथावसितान् वीक्ष्य यज्ञ: सर्वगतो हरि: ।
यामै: परिवृतो देवैर्हत्वाशासत् त्रिविष्टपम् ॥ १८ ॥
tāṁs tathāvasitān vīkṣya
yajñaḥ sarva-gato hariḥ
yāmaiḥ parivṛto devair
hatvāśāsat tri-viṣṭapam
The Supreme Lord, Viṣṇu, who sits in everyone’s heart, appearing as Yajñapati, observed that the Rākṣasas and demons were going to devour Svāyambhuva Manu. Thus the Lord, accompanied by His sons named the Yāmas and by all the other demigods, killed the demons and Rākṣasas. He then took the post of Indra and began to rule the heavenly kingdom.
Read Śrīla Prabhupāda's purport on Vedabase.io