Hadith 13399

(حديث مرفوع) حَدَّثَنَا يُونُسُ ، حَدَّثَنَا حَمَّادٌ يَعْنِي ابْنَ سَلَمَةَ ، عَنْ ثَابِتٍ ، عَنْ أَنَسٍ ، أَنّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ " يُغِيرُ عِنْدَ صَلَاةِ الْفَجْرِ ، فَيَسْتَمِعُ الْأَذَانَ ، فَإِذَا سَمِعَ الْأَذَانَ أَمْسَكَ ، وَإِلَّا أَغَارَ ، فَاسْتَمَعَ ذَاتَ يَوْمٍ ، فَسَمِعَ رَجُلًا يَقُولُ : اللَّهُ أَكْبَرُ ، اللَّهُ أَكْبَرُ ، فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : عَلَى الْفِطْرَةِ ، فَقَالَ : أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللَّهُ ، فَقَالَ : خَرَجْتَ مِنَ النَّارِ " .
It is narrated from Hazrat Anas (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) used to prepare to attack the enemy at the time of dawn and would listen attentively. If he heard the sound of the adhan from there, he would stop; otherwise, he would attack. One day, in the same manner, the Prophet (peace and blessings be upon him) listened attentively and heard a man saying "Allahu Akbar, Allahu Akbar." The Prophet (peace and blessings be upon him) said, "He is upon the sound nature." Then when the man said "Ashhadu an la ilaha illallah," the Prophet (peace and blessings be upon him) said, "You have been saved from the fire of Hell."
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 13399
Hadith Grading حکم دارالسلام: إسناده صحيح، خ: 2944، م: 382.