It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Indeed, Allah Almighty accepts the repentance of the servant as long as his soul has not reached his throat (that is, until the throes of death set in)."
Imam Ahmad (may Allah have mercy on him) also narrated it through Ali bin Ayyash and Isam bin Khalid, from Ibn Thawban.
And Imam al-Tirmidhi (may Allah have mercy on him) narrated it through Ibrahim bin Ya'qub from Ali bin Ayyash, and also through Ibn Bashshar by way of Abu Amir al-Aqadi from Abd al-Rahman, and he said: "This hadith is hasan gharib."
And Imam Ibn Majah (may Allah have mercy on him) narrated it through Rashid bin Sa'd al-Ramli from al-Walid bin Muslim, who narrated it from Ibn Thawban.
And Abu Hatim al-Busti (may Allah have mercy on him) narrated it through Abu Ya'la al-Mawsili.
Imam al-Daraqutni (may Allah have mercy on him) said: "It is narrated from Musa bin Dawud, from Abd al-Rahman bin Thabit bin Thawban, from Makhul, from Jubayr bin Nufayr, from Ibn Umar (may Allah be pleased with them both). But what is correct is that Abd al-Rahman bin Thabit bin Thawban narrates it from his father, from Makhul; this is how Ali bin al-Ja'd and others narrated it."