Al-An'am 6:60
وَهُوَ ٱلَّذِى يَتَوَفَّىٰكُم بِٱلَّيْلِ وَيَعْلَمُ مَا جَرَحْتُم بِٱلنَّهَارِ ثُمَّ يَبْعَثُكُمْ فِيهِ لِيُقْضَىٰٓ أَجَلٌ مُّسَمًّى ۖ ثُمَّ إِلَيْهِ مَرْجِعُكُمْ ثُمَّ يُنَبِّئُكُم بِمَا كُنتُمْ تَعْمَلُونَ
Wahuwa allathee yatawaffakumbillayli wayaAAlamu ma jarahtum binnaharithumma yabAAathukum feehi liyuqda ajalun musamman thummailayhi marjiAAukum thumma yunabbi-okum bima kuntumtaAAmaloon
And it is He who takes your souls by night and knows what you have committed by day. Then He revives you therein [i.e., by day] that a specified term may be fulfilled. Then to Him will be your return; then He will inform you about what you used to do.
He is the One who recalls your souls by night, and knows what you do by day; then He makes you rise up therein, so that a fixed term may be fulfilled. Thereafter, to Him are you to return; then He will tell you what you have been doing.