It is God who takes away men 's souls upon their death and the souls of the living during their sleep . Then He withholds those for whom He has ordained death and restores the souls of others for an appointed term .