Srimad-Bhagavatam: Canto 10 - Chapter 1 - Verse 25
Sanskrit:
भगवांस्तत्र निवसन् स्वानां प्रियचिकीर्षया ।अग्नये खाण्डवं दातुमर्जुनस्यास सारथि: ॥ २५ ॥
ITRANS:
bhagavāṁs tatra nivasansvānāṁ priya-cikīrṣayāagnaye khāṇḍavaṁ dātumarjunasyāsa sārathiḥ
Translation:
The Supreme Lord stayed in that city for some time to please His devotees. On one occasion, Śrī Kṛṣṇa wanted to give the Khāṇḍava forest as a gift to Agni, and so the Lord became Arjuna’s charioteer.
Purport:
Śrīla Jīva Gosvāmī explains the sequence of events that occurred during Lord Kṛṣṇa’s stay with the Pāṇḍavas. He states that first the Khāṇḍava forest was burned, then Kālindī was found, then the city was constructed, and then the assembly hall was presented to the Pāṇḍavas.