Bhagavān api viśvātmā loka-veda-pathānugaḥ
Kāmān siṣeve dvārvatyām asaktaḥ sāṅkhyam āsthitaḥ
Lord Srikrishna, who is the universal Self, enjoyed the comforts in Dwaraka while adhering to the customs of the world, strictly abiding by the Vedic dictates, being firmly established in the ultimate Absolute Truth, and with absolutely no desire towards this materialistic world. In this way he established the path of knowledge in this world.
Bhagavān svātma-māyāyā gatiṁ tām avalokya saḥ
Sarasvatīm upaspṛśya vṛkṣa-mūlam upāviśat
The Supreme Lord with His transcendental divine vision foresaw this destruction of His Yadava clan. He then bathed in the River Saraswati and sat down under a tree.
from Srimad Bhagavatam – Day 98(Translations of Pujya Sri Ganapathy Sachchidananda Swamiji’s daily explanation of Srimad Bhagavatam on ETV from December 2015 onwards are compiled by Parimala Eshwarla)