[Machine] On the authority of the Messenger of Allah ﷺ , he said, "Whoever says, when he hears the Mu'adhin (the caller to prayer), 'I bear witness that there is no deity worthy of worship except Allah alone, without any partners, and that Muhammad is His slave and messenger, I am pleased with Allah as my Lord, Muhammad as His slave, and Islam as my religion, his sins will be forgiven.'" This hadith is authentic and it was not narrated by al-Hakam bin Abdullah. He is the brother of Muhammad bin Abdullah bin Qais bin Makhrama al-Qurashi. Additionally, it was also narrated from above Ali bin Abi Talib al-Himsi in the addition of al-Thabit.
عَنْ رَسُولِ اللَّهِ ﷺ قَالَ مَنْ قَالَ حِينَ سَمِعَ الْمُؤَذِّنَ وَأَنَا أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللَّهُ وَحْدَهُ لَا شَرِيكَ لَهُ وَأَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُهُ رَضِيتُ بِاللَّهِ رِبًّا وَبِمُحَمَّدٍ نَبِيًّا وَبِالْإِسْلَامِ دِينًا غُفِرَ لَهُ ذَنْبُهُ «» صَحِيحٌ وَلَمْ يُخَرِّجَاهُ وَالْحَكَمُ بْنُ عَبْدِ اللَّهِ هُوَ أَخُو مُحَمَّدِ بْنِ عَبْدِ اللَّهِ بْنِ قَيْسِ بْنِ مَخْرَمَةَ الْقُرَشِيُّ وَفِي الثَّبْتِ فَوْقَ عَلِيِّ بْنِ عَبَّاسٍ الْحِمْصِيِّ صحيح