The Prophet (peace and blessings be upon him) said: "Whoever repents to Allah before the death rattle, Allah accepts his repentance."