Language:
كتاب التوحيد
97  
Oneness, Uniqueness of Allah (Tawheed)
(44)
Chapter: “And whether you keep your talk secret or disclose it. Verily, He is the All-Knower of what is in the breasts (of men)….”
(44)
Sahih al-Bukhari 7525

Narrated Ibn `Abbas:

regarding the explanation of the Verse:-- '(O Muhammad!) Neither say your prayer aloud, nor say it in a low tone.' (17.110) This Verse was revealed while Allah's Messenger (ﷺ) was hiding himself at Mecca. At that time, when he led his companions in prayer, he used to raise his voice while reciting the Qur'an; and if the pagans heard him, they would abuse the Qur'an, its Revealer, and the one who brought it. So Allah said to His Prophet: "Neither say your prayer aloud. i.e., your recitation (of Qur'an) lest the pagans should hear (it) and abuse the Qur'an" nor say it in a low tone, "lest your voice should fail to reach your companions, "but follow a way between." (17.110)

حَدَّثَنِي عَمْرُو بْنُ زُرَارَةَ، عَنْ هُشَيْمٍ، أَخْبَرَنَا أَبُو بِشْرٍ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ فِي قَوْلِهِ تَعَالَى ‏{‏وَلاَ تَجْهَرْ بِصَلاَتِكَ وَلاَ تُخَافِتْ بِهَا‏}‏ قَالَ نَزَلَتْ وَرَسُولُ اللَّهِ صلى الله عليه وسلم مُخْتَفٍ بِمَكَّةَ، فَكَانَ إِذَا صَلَّى بِأَصْحَابِهِ رَفَعَ صَوْتَهُ بِالْقُرْآنِ، فَإِذَا سَمِعَهُ الْمُشْرِكُونَ سَبُّوا الْقُرْآنَ وَمَنْ أَنْزَلَهُ وَمَنْ جَاءَ بِهِ، فَقَالَ اللَّهُ لِنَبِيِّهِ صلى الله عليه وسلم ‏{‏وَلاَ تَجْهَرْ بِصَلاَتِكَ‏}‏ أَىْ بِقِرَاءَتِكَ، فَيَسْمَعَ الْمُشْرِكُونَ، فَيَسُبُّوا الْقُرْآنَ ‏{‏وَلاَ تُخَافِتْ بِهَا‏}‏ عَنْ أَصْحَابِكَ فَلاَ تُسْمِعُهُمْ ‏{‏وَابْتَغِ بَيْنَ ذَلِكَ سَبِيلاً‏}
Reference : Sahih al-Bukhari 7525
In-book reference : Book 97, Hadith 150
USC-MSA web (English) reference : Vol. 9, Book 93, Hadith 616
  (deprecated numbering scheme)