The Prophet ﷺ used to raise his voice when reciting the Quran. When the polytheists heard his voice, they would insult the Quran and the one who brought it. So the Prophet ﷺ began to lower his voice when reciting the Quran, to the point that his companions could not hear him. Then Allah revealed, "And do not recite your prayer too loudly, nor too quietly, but seek a way between that" [Isra 17:110].
أخبرنا محمد بن قدامة قال حدثنا جرير عن الأعمش عن جعفر بن إياس عن سعيد بن جبير
كان النبي ﷺ يرفع صوته بالقرآن وكان المشركون إذا سمعوا صوته سبوا القرآن ومن جاء به فكان النبي ﷺ يخفض صوته بالقرآن ما كان يسمعه أصحابه فأنزل الله عز وجل {ولا تجهر بصلاتك ولا تخافت بها وابتغ بين ذلك سبيلا}