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.
quran:9:61

And among them are those who abuse the Prophet and say, "He is an ear." Say, "˹It is˺ an ear of goodness for you that believes in Allah and believes the believers and ˹is˺ a mercy to those who believe among you." And those who abuse the Messenger of Allah - for them is a painful punishment.  

And of them, the hypocrites, are those who injure the Prophet, by casting aspersions on him and communicating ˹to others˺ what he says ˹in confidence˺, saying, when they are forbidden from ˹doing˺ this, lest it should reach him: ‘He is only a listener!’, that is, he listens to anything that is said, and accepts it, so that when we swear to him that we have not communicated ˹to others˺ a particular thing, he believes us. Say, he is, ‘A listener, who listens, to good for you, and not one who listens to evil, one who believes in God and has faith, he trusts, in the believers, in what they inform him, and not in others (the lām ˹of li’lmu’minīna, ‘in the believers’˺ has been added to distinguish between belief in the sense of ‘submitting ˹to God˺’ (islām), and in other senses ˹such as ‘trusting’˺) and who is a mercy (read rahmatun, in the nominative, as a supplement to udhunun, ‘a listener’, or rahmatin, in the genitive, as a supplement to khayrin, ‘to good’) to those of you who believe. Those who injure God’s Messenger, for them there is a painful chastisement’.
القرآن:٩:٦١

وَمِنْهُمُ الَّذِينَ يُؤْذُونَ النَّبِيَّ وَيَقُولُونَ هُوَ أُذُنٌ ۚ قُلْ أُذُنُ خَيْرٍ لَكُمْ يُؤْمِنُ بِاللَّهِ وَيُؤْمِنُ لِلْمُؤْمِنِينَ وَرَحْمَةٌ لِلَّذِينَ آمَنُوا مِنْكُمْ ۚ وَالَّذِينَ يُؤْذُونَ رَسُولَ اللَّهِ لَهُمْ عَذَابٌ أَلِيمٌ  

{ومنهم} أي المنافقين {الذين يؤذون النبي} بعيبه وبنقل حديثه {ويقولن} إذا نُهوا عن ذلك لئلا يبلغه {هو أُذُنُ} أي يسمع كل قيل ويقبله فإذا حلفنا له أنَّا لم نقل صدَّقنا {قل} هو {أُذُن} مستمع {خيرٍ لكم} لا مستمع شر {يؤمن بالله ويؤمن} يصدق {للمؤمنين} فيما أخبروه به لا لغيرهم واللام زائدة للفرق بين إيمان التسليم وغيره {ورحمةٌ} بالرفع عطفا على أذن والجر عطفا على خير {للذين آمنوا منكم والذين يؤذون رسول الله لهم عذاب أليم}.