Śrīmad-Bhāgavatam · Text 6.1.48
Who is speaking and story frame
मनसैव पुरे देव: पूर्वरूपं विपश्यति ।
अनुमीमांसतेऽपूर्वं मनसा भगवानज: ॥ ४८ ॥
manasaiva pure devaḥ
pūrva-rūpaṁ vipaśyati
anumīmāṁsate ’pūrvaṁ
manasā bhagavān ajaḥ
The omnipotent Yamarāja is as good as Lord Brahmā, for while situated in his own abode or in everyone’s heart like the Paramātmā, he mentally observes the past activities of a living entity and thus understands how the living entity will act in future lives.
Read Śrīla Prabhupāda's purport on Vedabase.io