He died in prison, in the month of Rajab, 399 AH, and his estate passed to his son Abū Ḥafṣ.
Al-Ḥākim said, “I read to him in Bukhārā al-Dāraqutnī’s Intikhāb that had been prepared for him, and he died as a martyr while confined in the land of India ….” Al-Ḥākim then cited nine hadiths in his biographical entry.
Aḥmad b. Hibat Allāh narrated to us—during my public reading—from ʿAbd al-Muʿizz b. Muḥammad; Zāhir b. Ṭāhir narrated to us; Abū Yaʿlā Isḥāq b. ʿAbd al-Raḥmān the preacher narrated to us in 451 AH; the amir Abū Aḥmad Khalaf b. Aḥmad b. Muḥammad b. Khalaf narrated to us; Khalaf b. Muḥammad b. Ismāʿīl narrated to us; Khalaf b. Sulaymān narrated to us; Khalaf b. Muḥammad b. Kurdūs narrated to us; Khalaf b. Mūsā b. Khalaf al-ʿAmmi narrated to us; my father narrated to us, from ʿAmr b. Dīnār, from Ibn ʿAbbās, that he heard a man supplicating, “O Allah, forgive me and so-and-so.”
Ibn ʿAbbās asked, “Who is so-and-so?”
The man replied, “A neighbor of mine who asked me to seek forgiveness for him.”
Ibn ʿAbbās said, “May Allah forgive you and your companion. Indeed, the Messenger of Allah heard a man say, ‘O Allah, forgive me and so-and-so.’ He asked, ‘Who is so-and-so?’ The man answered, ‘A neighbor of mine who asked me to seek forgiveness for him.’ The Prophet said, ‘May Allah forgive you and him.’ (1)”
This transmission is musalsal, with five consecutive narrators all bearing the name Khalaf.