Dalil

Quran Al-Furqan 25:47

وَهُوَ ٱلَّذِي جَعَلَ لَكُمُ ٱلَّيۡلَ لِبَاسٗا وَٱلنَّوۡمَ سُبَاتٗا وَجَعَلَ ٱلنَّهَارَ نُشُورٗا

Translation

And it is He who has made the night for you as clothing and sleep [a means for] rest and has made the day a resurrection.