It is reported that Yūnus b. ‘Ubayd (d. 139H) – Allāh have mercy on him – said:

I only liken the worldly life (dunyā) to a man who, whilst sleeping, sees in his dream things he likes and things he does not like. Then he wakes up (the world ends and the next life starts).

Ibn Abī Al-Dunyā, Dham Al-Dunyā article 21.

It is reported that Al-Ḥasan Al-Baṣrī – Allāh have mercy on him – said:

The dunyā, from its beginning to its end, is only like a man who takes a nap, sees in his dream what pleases him, and then wakes up.

Abū Bakr Al-Daynūrī, Al-Mujālasah wa Jawāhir Al-ʿIlm article 2056.