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.
Srimad Bhagavata Purana
श्रीमद्भागवतमहापुराणम्
मूल श्लोकः
यमदूता ऊचुः । वेदप्रणिहितो धर्मो ह्यधर्मस्तद्विपर्ययः । वेदो नारायणः साक्षात्स्वयम्भूरिति शुश्रुम
yamadūtā ūcuḥ | vedapraṇihito dharmo hyadharmastadviparyayaḥ | vedo nārāyaṇaḥ sākṣātsvayambhūriti śuśruma
SB 6.1.40