Surah Al-Hujurat 49:2
يَـٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ لَا تَرْفَعُوٓا۟ أَصْوَٰتَكُمْ فَوْقَ صَوْتِ ٱلنَّبِىِّ وَلَا تَجْهَرُوا۟ لَهُۥ بِٱلْقَوْلِ كَجَهْرِ بَعْضِكُمْ لِبَعْضٍ أَن تَحْبَطَ أَعْمَـٰلُكُمْ وَأَنتُمْ لَا تَشْعُرُونَ
O you who have believed, do not raise your voices above the voice of the Prophet or be loud to him in speech like the loudness of some of you to others, lest your deeds become worthless while you perceive not.
Translation: Saheeh International
Tafsir
The following was revealed regarding those who raised their voices in the presence of the Prophet s O you who believe do not raise your voices — when you want to speak — above the voice of the Prophet when he is speaking and do not shout words at him when you wish to confide in him as you shout to one another but …
Excerpt from Tafsir al-Jalalayn, commentary on 49:2, via Quran.com. The reader has the full commentary and 9 more tafsirs.