Abdullah bin Abbas reported,

The Prophet ﷺ was in hiding in Mecca, and he used to raise his voice. When the polytheists heard him, they would insult the Quran and the one who brought it. So Allah عز وجل said to His Prophet ﷺ, "And do not be loud in your prayer, nor too quiet in it" [Isra 17:110].

Bukhari 7547

Sahih

حدثنا حجاج بن منهال حدثنا هشيم عن أبي بشر عن سعيد بن جبير

عن ابن عباس رضي الله عنهما قال

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

البخاري 7547صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
Prophet's ﷺ saying, "The one skilled in the Quran is with the noble and righteous angels"
Numbering
Darussalam 7547
Bukhari 7547