Al-Ḥākim and Aḥmad likewise transmitted it through the route of Qutaybah ibn Saʿīd: al-Layth narrated to us from al-Ḥakīm ibn ʿAbd Allāh ibn Qays, from ʿĀmir ibn Saʿd ibn Abī Waqqāṣ, from his father. Al-Tirmidhī said, “A ḥadith that is ḥasan ṣaḥīḥ.” Al-Ḥākim ruled it “ṣaḥīḥ,” and al-Dhahabī concurred. Their judgment is correct, yet they erred in claiming that Muslim omitted it, for Muslim actually recorded it with this very chain.
Muslim, Ibn Mājah, al-Ṭaḥāwī, and Aḥmad then brought it through additional chains from al-Layth. Al-Ṭaḥāwī also produced it via ʿUbayd Allāh ibn al-Mughīrah, from al-Ḥakīm ibn ʿAbd Allāh ibn Qays, … repeating the same isnād but adding the words: “Whoever, when he hears the muʾadhdhin recite the testimony of faith….” The isnād runs as follows: Rūḥ ibn al-Faraj narrated to us; Saʿīd ibn Kathīr ibn ʿUfayr narrated to us; Yaḥyā ibn Ayyūb narrated to me, from ʿUbayd Allāh ibn al-Mughīrah.
This isnād is sound; every transmitter in it is trustworthy and listed in Tahdhīb al-Tahdhīb. It also contains the additional phrase that pinpoints when this supplication is to be made—namely, when the muʾadhdhin pronounces the declaration of faith. This is a rare addition, seldom found in the books, so take hold of it.
Al-Sindī notes in his marginalia on Ibn Mājah: Regarding the phrase “Whoever says it upon hearing the adhān,” the apparent sense is that it is to be said once he has finished listening to the adhān; otherwise, one would have to reconcile it with the likes of