Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:7547Ḥajjāj b. Minhāl > Hushaym > Abū Bishr > Saʿīd b. Jubayr > Ibn ʿAbbās

The Prophet ﷺ was hiding himself in Mecca and used to recite the (Qur'an) in a loud voice. When the pagans heard him they would abuse the Qur'an and the one who brought it, so Allah said to His Prophet: 'Neither say your prayer aloud, nor say it in a low tone.' (17.110)  

البخاري:٧٥٤٧حَدَّثَنَا حَجَّاجُ بْنُ مِنْهَالٍ حَدَّثَنَا هُشَيْمٌ عَنْ أَبِي بِشْرٍ عَنْ سَعِيدِ بْنِ جُبَيْرٍ عَنِ ابْنِ عَبَّاسٍ ؓ قَالَ

كَانَ النَّبِيُّ ﷺ مُتَوَارِيًا بِمَكَّةَ وَكَانَ يَرْفَعُ صَوْتَهُ فَإِذَا سَمِعَ الْمُشْرِكُونَ سَبُّوا الْقُرْآنَ وَمَنْ جَاءَ بِهِ فَقَالَ اللَّهُ ﷻ لِنَبِيِّهِ ﷺ {وَلاَ تَجْهَرْ بِصَلاَتِكَ وَلاَ تُخَافِتْ بِهَا}  


See similar narrations below:

Collected by Nasāʾī
nasai:1012Muḥammad b. Qudāmah > Jarīr > al-Aʿmash > Jaʿfar b. Iyās > Saʿīd b. Jubayr > Ibn ʿAbbās

"The Prophet ﷺ used to raise his voice when reciting Quran, and when the idolaters heard his voice they would insult the Quran and the one who had brought it. So the Prophet ﷺ began to lower his voice such that his companions would not hear him. Then Allah (SWT), the Mighty and Sublime, revealed: 'And offer your salah (prayer) neither aloud nor in a low voice, but follow a way between.'"  

النسائي:١٠١٢أَخْبَرَنَا مُحَمَّدُ بْنُ قُدَامَةَ قَالَ حَدَّثَنَا جَرِيرٌ عَنِ الأَعْمَشِ عَنْ جَعْفَرِ بْنِ إِيَاسٍ عَنْ سَعِيدِ بْنِ جُبَيْرٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

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