Hadithcore
Sahih Muslim, 388 a
sahih

Abu Sufyan reported it on the authority of Jabir that he had heard the Messenger of Allah (ﷺ) say:

When Satan hears the call to prayer, he runs away to a distance like that of Rauha. Sulaimin said: I asked him about Rauha. He replied: It is at a distance of thirty-six miles from Medina.

حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، وَعُثْمَانُ بْنُ أَبِي شَيْبَةَ، وَإِسْحَاقُ بْنُ إِبْرَاهِيمَ، قَالَ إِسْحَاقُ أَخْبَرَنَا وَقَالَ الآخَرَانِ، حَدَّثَنَا جَرِيرٌ، عَنِ الأَعْمَشِ، عَنْ أَبِي سُفْيَانَ، عَنْ جَابِرٍ، قَالَ سَمِعْتُ النَّبِيَّ صلى الله عليه وسلم يَقُولُ ‏

‏ إِنَّ الشَّيْطَانَ إِذَا سَمِعَ النِّدَاءَ بِالصَّلاَةِ ذَهَبَ حَتَّى يَكُونَ مَكَانَ الرَّوْحَاءِ ‏

‏ ‏.‏ قَالَ سُلَيْمَانُ فَسَأَلْتُهُ عَنِ الرَّوْحَاءِ ‏.‏ فَقَالَ هِيَ مِنَ الْمَدِينَةِ سِتَّةٌ وَثَلاَثُونَ مِيلاً ‏.‏

References2 variants
In-Book Reference
Book 4, Hadith 17
USC-MSA web (English) reference
Book 4, Hadith 751 (deprecated numbering scheme)
Sharh · explanationclick to expand
Satan's goal is to seduce people and turn them away from Allah's path and monotheism. As a result, it is so difficult for him to hear the call to prayer, for it includes calling for monotheism and declaring the slogan of Islam. In this hadith, the Prophet (ﷺ) confirms that when the call to prayer is announced, Satan goes far away to a distant place called, "Ar-Rauha'" which is a valley about 80 kilometers from Medina and about 25 kilometers in length between Medina and Mecca. This means Satan goes far away from the praying person as the distance between Medina and Ar-Rawha’. The Prophet (ﷺ) used to rest there during traveling to perform pilgrimage or umrah and returning from a battle. This hadith confirms that Satan moves far away from the place where the call to prayer is delivered as shown in another narration of this hadith in the Two Sahihs that the Prophet (ﷺ) said, "When the call to prayer is finished, he comes back, and when the Iqama is delivered, he goes far away again, and when the Iqama is finished, he comes back again." Finally, this hadith shows the virtue and effects of the call to prayer on escaping Satan and keeping his whisperings away from the praying person..