Sahih al-Bukhari 4722
Ya'qub bin Ibrahim told us that Hushaim (bin Bashir) narrated to us. (He said:) Abu Bishr informed us that it is narrated from Sa'id bin Jubair. He narrated from Hazrat Ibn Abbas (ra) that concerning the saying of Allah the Exalted “wa la tajhar bi-salatika wa la tukhafit biha” (that is, “And utter not thy prayer aloud, nor utter it too low” (Qur’an 17:111)) he said that this verse was revealed when the Messenger of Allah (saw) was living in concealment in Mecca. When he led his companions in Prayer, he would raise his voice in reciting the Qur’an. And when the idolaters heard it, they would abuse the Qur’an, and Him Who revealed it, and him who brought it. Therefore Allah the Exalted said to His Prophet (saw): Do not recite your Prayer aloud, that is, do not raise your recitation, lest the idolaters hear and abuse the Qur’an; nor make your voice so low from your companions that you cannot make them hear; and adopt a middle way in it.
AI-translated by Islam-Today