Anas bin Malik reported,

The Messenger of Allah would not launch a raid at the break of dawn. He would listen for the call to prayer. If he heard the adhan, he would hold back, and if not, he would attack.He once heard a man say, "Allahu Akbar, Allahu Akbar."The Messenger of Allah ﷺ said, "Upon the natural disposition."Then the man said, "I bear witness that there is no god but Allah, I bear witness that there is no god but Allah."The Messenger of Allah ﷺ said, "You have come out of the Fire."They looked, and found him to be a goatherd.

Azami 7858

Sahih

عن أنس قال

كان رسول الله لا يغير إذا طلع الفجر، وكان يستمع الأذان، فإن سمع أذانا أمسك، وإلا أغار، فسمع رجلا يقول: الله أكبر الله أكبر، فقال رسول الله ﷺ: على الفطرة، ثم قال: أشهد أن لا إله إلا الله أشهد أن لا إله إلا الله فقال رسول الله ﷺ: خرجت من النار، فنظروا فإذا هو راعي معزى.

الأعظمي 7858صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Rulings on jihad and its etiquette
Section
Hour in which fighting is recommended
Numbering
Jami al-Kamil 7858 (2nd edition)
Azami 7858