Mandukya Karika 2.7
Sanskrit Verse
सप्रयोजनता तेषां स्वप्ने विप्रतिपद्यते ।
तस्मादाद्यन्तवत्वेन मिथ्यैव खलु ते स्मृताः ॥ ७ ॥
Transliteration
saprayojanatā teṣāṃ svapne vipratipadyate |
tasmādādyantavatvena mithyaiva khalu te smṛtāḥ || 7 ||
Translation
The serving a purpose (as means to an end), of them (the objects of waking experience) is contradicted (opposed) in dream. Therefore they are undoubtedly admitted to be illusory on account of their (both waking and dream) being with a beginning and an end.

Muni's Play