The surah opens: "O you who have believed, do not put yourselves before Allah and His Messenger, but fear Allah" (Quran 49:1). Believers should not decide matters of religion by their own opinion before the guidance of revelation. Then Allah forbids raising voices above the voice of the Prophet ﷺ, and warns that deeds may be lost without people noticing (Quran 49:2).
The verse was taken very seriously by the Companions. Abu Bakr and Umar, may Allah be pleased with them, once raised their voices in front of the Prophet ﷺ, and the verse was revealed. After that, Umar spoke so softly that the Prophet ﷺ had to ask him to repeat (Sahih al-Bukhari 4845). Thabit ibn Qays (may Allah be pleased with him), whose voice was naturally loud, feared that his deeds had been lost and stayed at home weeping, and the Prophet ﷺ sent word that he was of the people of Paradise (Sahih al-Bukhari 4846).
Scholars understand that respect for the Prophet ﷺ continues after his lifetime in honouring his words, following his Sunnah, and not setting aside authentic narrations because of personal opinion. Verses 4 and 5 also teach good manners in visiting, since people who shouted for him from outside his rooms were told that patience would have been better for them.