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:3:159

So by mercy from Allah, ˹O Muhammad˺, you were lenient with them. And if you had been rude ˹in speech˺ and harsh in heart, they would have disbanded from about you. So pardon them and ask forgiveness for them and consult them in the matter. And when you have decided, then rely upon Allah. Indeed, Allah loves those who rely ˹upon Him˺.  

It was by the mercy of God that you, O Muhammad (s), were lenient with them, that is, ˹that˺ you showed indulgence ˹toward them˺ when they disobeyed you; had you been harsh, ill-natured, and fierce of heart, brutish and coarse towards them, they would have dispersed, split away, from about you. So pardon them, pass over what they have done, and ask forgiveness for them, for their sins, until I forgive them, and consult them, find out their opinions, in the matter, that is, your affair in the battle and otherwise, in order to win their hearts over and so that you may be emulated ˹in this respect˺; and indeed, the Prophet (s) would frequently consult them. And when you are resolved, to carry out what you wish after counsel, rely on God, put your trust in Him and not in ˹any˺ counsel; for God loves those who rely, on Him.
القرآن:٣:١٥٩

فَبِمَا رَحْمَةٍ مِنَ اللَّهِ لِنْتَ لَهُمْ ۖ وَلَوْ كُنْتَ فَظًّا غَلِيظَ الْقَلْبِ لَانْفَضُّوا مِنْ حَوْلِكَ ۖ فَاعْفُ عَنْهُمْ وَاسْتَغْفِرْ لَهُمْ وَشَاوِرْهُمْ فِي الْأَمْرِ ۖ فَإِذَا عَزَمْتَ فَتَوَكَّلْ عَلَى اللَّهِ ۚ إِنَّ اللَّهَ يُحِبُّ الْمُتَوَكِّلِينَ  

{فبما رحمة من الله لِنْتَ} يا محمد {لهم} أي سهلت أخلاقك إذ خالفوك {ولو كنت فظا} سيء الخُلُق {غليظ القلب} جافيا فأغلظت لهم {لا نفضُّوا} تفرقوا {من حولك فاعف} تجاوز {عنهم} ما أتوه {واستغفر لهم} ذنوبهم حتى أغفر لهم {وشاورهم} استخرج آراءهم {في الأمر} أي شأنك من الحرب وغيرة تطيبيا لقلوبهم ولستن بك وكان ﷺ كثير المشاورة لهم. (فإذا عزمت) على إمضاء ما تريد بعد المشاورة {فَتوكَّلْ على الله} ثق به لا بالمشاورة {إن الله يحب المتوكلين} عليه.