Śrīmad-Bhāgavatam 8.1.18
తాంస్తథావసితాన్ వీక్ష్య యజ్ఞ: సర్వగతో హరి: ।
యామై: పరివృతో దేవైర్హత్వాశాసత్ త్రివిష్టపమ్ ॥ ౧౮ ॥
tāṁs tathāvasitān vīkṣya
[taams tathaavasitaan veekshya]
yajṣaḥ sarva-gato hariḥ
[yajshah sarva-gato harih]
yāmaiḥ parivṛto devair
[yaamaih parivrito devair]
hatvāśāsat tri-viṣṭapam
[hatvaashaasat tri-vishtapam]
Word-for-word
tān
—
the demons and Rākṣasas
tathā
—
in that way
avasitān
—
who were determined to devour Svāyambhuva Manu
vīkṣya
—
upon observing
yajṣaḥ
—
Lord Viṣṇu, known as Yajṣa
sarva-gataḥ
—
who is seated in everyone’s heart
hariḥ
—
the Supreme Personality of Godhead
yāmaiḥ
—
with His sons named the Yāmas
parivṛtaḥ
—
surrounded
devaiḥ
—
by the demigods
hatvā
—
after killing (the demons)
aśāsat
—
ruled (taking the post of Indra)
tri-viṣṭapam
—
the heavenly planets.
Blended reading (Sanskrit + English inline)
tāṁs tathāvasitān vīkṣya
tān
the demons and Rākṣasas
tathā
in that way
avasitān
who were determined to devour Svāyambhuva Manu
vīkṣya
upon observing
yajṣaḥ sarva-gato hariḥ
yajṣaḥ
Lord Viṣṇu, known as Yajṣa
sarva-gataḥ
who is seated in everyone’s heart
hariḥ
the Supreme Personality of Godhead
yāmaiḥ parivṛto devair
yāmaiḥ
with His sons named the Yāmas
parivṛtaḥ
surrounded
devaiḥ
by the demigods
hatvāśāsat tri-viṣṭapam
hatvā
after killing (the demons)
aśāsat
ruled (taking the post of Indra)
tri-viṣṭapam
the heavenly planets.
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.
Purport
The various names of the demigods — Lord Brahmā, Lord Śiva, Lord Indra and so on — are not personal names; they are names of different posts. In this regard, we understand that Lord Viṣṇu sometimes becomes Brahmā or Indra when there is no suitable person to occupy these posts.
— A.C. Bhaktivedanta Swami Prabhupāda
Gauḍīya Ācāryas
Viśvanātha Cakravartī Ṭhākura
Gauḍīya
Translation
Seeing the demons about to devour him, Yajṣa, who pervades everywhere, killed the demons and then ruled in Svarga, surrounded by the Yāmas and the devatās.
The Yāmas mentioned are the sons of Yajṣā.
My note
Source: vedabase.io