Az-Zumar 39:42
ٱللَّهُ يَتَوَفَّى ٱلْأَنفُسَ حِينَ مَوْتِهَا وَٱلَّتِى لَمْ تَمُتْ فِى مَنَامِهَا ۖ فَيُمْسِكُ ٱلَّتِى قَضَىٰ عَلَيْهَا ٱلْمَوْتَ وَيُرْسِلُ ٱلْأُخْرَىٰٓ إِلَىٰٓ أَجَلٍ مُّسَمًّى ۚ إِنَّ فِى ذَٰلِكَ لَـَٔايَـٰتٍ لِّقَوْمٍ يَتَفَكَّرُونَ
Allahu yatawaffa al-anfusa heenamawtiha wallatee lam tamut fee manamihafayumsiku allatee qada AAalayha almawta wayursilual-okhra ila ajalin musamman inna fee thalikalaayatin liqawmin yatafakkaroon
Allāh takes the souls at the time of their death, and those that do not die [He takes] during their sleep. Then He keeps those for which He has decreed death and releases the others for a specified term. Indeed in that are signs for a people who give thought.
Allah fully takes away the souls (of the people) at the time of their death, and (of) those who do not die, in their sleep. Then He withholds those on whom He had decreed death, and sends others back, up to an appointed term. Surely, in this, there are signs for a people who ponder.