Śrīmad-Bhāgavatam · Text 6.1.40
Who is speaking and story frame
यमदूता ऊचु:
वेदप्रणिहितो धर्मो ह्यधर्मस्तद्विपर्यय: ।
वेदो नारायण: साक्षात्स्वयम्भूरिति शुश्रुम ॥ ४० ॥
yamadūtā ūcuḥ
veda-praṇihito dharmo
hy adharmas tad-viparyayaḥ
vedo nārāyaṇaḥ sākṣāt
svayambhūr iti śuśruma
The Yamadūtas replied: That which is prescribed in the Vedas constitutes dharma, the religious principles, and the opposite of that is irreligion. The Vedas are directly the Supreme Personality of Godhead, Nārāyaṇa, and are self-born. This we have heard from Yamarāja.
Read Śrīla Prabhupāda's purport on Vedabase.io