Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:2634Mūsá b. Ismāʿīl > Ḥammād > Thābit > Anas

Anas said “The Prophet ﷺ used to attack at the time of the dawn prayer and hear. If he heard a call to prayer, he would refrain from them, otherwise would attack (them).  

أبو داود:٢٦٣٤حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ حَدَّثَنَا حَمَّادٌ أَخْبَرَنَا ثَابِتٌ عَنْ أَنَسٍ

أَنَّ النَّبِيَّ ﷺ كَانَ يُغِيرُ عِنْدَ صَلاَةِ الصُّبْحِ وَكَانَ يَتَسَمَّعُ فَإِذَا سَمِعَ أَذَانًا أَمْسَكَ وَإِلاَّ أَغَارَ  


See similar narrations below:

Collected by Dārimī
darimi:2489Ḥajjāj b. Minhāl > Ḥammād b. Salamah > Thābit > Anas

[Machine] The Prophet ﷺ used to change his position during the Fajr prayer and he used to listen. If he heard the Adhan, he would stop, and if he didn't hear the Adhan, he would continue.  

الدارمي:٢٤٨٩حَدَّثَنَا حَجَّاجُ بْنُ مِنْهَالٍ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ عَنْ ثَابِتٍ عَنْ أَنَسٍ

أَنَّ النَّبِيَّ ﷺ كَانَ يُغِيرُ عِنْدَ صَلَاةِ الْفَجْرِ وَكَانَ يَسْتَمِعُ فَإِنْ سَمِعَ أَذَانًا أَمْسَكَ وَإِنْ لَمْ يَسْمَعْ أَذَانًا أَغَارَ