Abdullah bin Abbas reported,

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].

Nasai 1013

Sahih

أخبرنا محمد بن قدامة قال حدثنا جرير عن الأعمش عن جعفر بن إياس عن سعيد بن جبير

عن ابن عباس قال

كان النبي ﷺ يرفع صوته بالقرآن وكان المشركون إذا سمعوا صوته سبوا القرآن ومن جاء به فكان النبي ﷺ يخفض صوته بالقرآن ما كان يسمعه أصحابه فأنزل الله عز وجل {ولا تجهر بصلاتك ولا تخافت بها وابتغ بين ذلك سبيلا}

النسائي 1013صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Commencement
Chapter
His saying عز وجل, "Do not raise your voice in your prayer, nor speak it in a whisper"
Numbering
Darussalam 1013
Nasai 1013