Ali 'Imran 3:159
فَبِمَا رَحْمَةٍ مِّنَ ٱللَّهِ لِنتَ لَهُمْ ۖ وَلَوْ كُنتَ فَظًّا غَلِيظَ ٱلْقَلْبِ لَٱنفَضُّوا۟ مِنْ حَوْلِكَ ۖ فَٱعْفُ عَنْهُمْ وَٱسْتَغْفِرْ لَهُمْ وَشَاوِرْهُمْ فِى ٱلْأَمْرِ ۖ فَإِذَا عَزَمْتَ فَتَوَكَّلْ عَلَى ٱللَّهِ ۚ إِنَّ ٱللَّهَ يُحِبُّ ٱلْمُتَوَكِّلِينَ
Fabima rahmatin mina Allahilinta lahum walaw kunta faththan ghaleethaalqalbi lanfaddoo min hawlika faAAfuAAanhum wastaghfir lahum washawirhum fee al-amrifa-itha AAazamta fatawakkal AAala Allahiinna Allaha yuhibbu almutawakkileen
"So by mercy from Allāh, [O Muḥammad], 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 Allāh. Indeed, Allāh loves those who rely [upon Him]."
Ali 'Imran 3:159, translation by Sahih International
A short reflection
It was by mercy from God that you, O Prophet, were gentle with them.