“We delivered the Children of Israel across the sea. Pharaoh and his troops pursued them, aggressively and sinfully. When drowning became a reality for him, he said, “I believe that there is no god except the One in whom the Children of Israel have believed; I am a submitter.”
“Too late! For you have rebelled already, and chose to be a transgressor.
“Today, we will preserve your body, to set you up as a lesson for future generations.” Unfortunately, many people are totally oblivious to our signs.” 10:90-92
A Quranic truth that is confirmed in a number of verses, is that the human being is given all his life as his chance to accept God and to be a believer. This chance ends when death is upon him. For at the moment of death, all humans know the truth and know that God alone is Supreme. Then they would wish to be returned to earth to do better work:
“When death comes to one of them, he says, “My Lord, send me back. “I will then work righteousness in everything I left.”23:99-100
Once this reality is upon the human, there would be no credit due for accepting God.
The story of Pharaoh in Sura 10 is a fine example of this reality.
The Quran urges every soul to repent and be sincere in their repentance. And along the same lines as the verses above, repentance is not accepted from those who feel death coming, for then it is also too late:
“Not acceptable is the repentance of those who commit sins until death comes to them, then say, “Now I repent.” Nor is it acceptable from those who die as disbelievers. For these, we have prepared a painful retribution.” 4:18