So is one who pursues the pleasure of Allāh like one who brings upon himself the anger of Allāh and whose refuge is Hell? And wretched is the destination.
Among the Qualities of Our Prophet Muhammad are Mercy and Kindness
Allah addresses His Messenger and reminds him and the believers of the favor that He has made his heart and words soft for his Ummah, those who follow his command and refrain from what he prohibits.
فَبِمَا رَحْمَةٍ مِّنَ اللَّهِ لِنتَ لَهُمْ
(And by the mercy of Allah, you dealt with them gently) 3:159. meaning, who would have made you this kind, if it was not Allah's mercy for you and them. Qatadah said that,
فَبِمَا رَحْمَةٍ مِّنَ اللَّهِ لِنتَ لَهُمْ
(And by the mercy of Allah, you dealt with them gently) means, "With Allah's mercy you became this kind." Al-Hasan Al-Basri said that this, indeed, is the description of the behavior that Allah sent Muhammad with. This Ayah is similar to Allah's statement,
The verse مَا كَانَ لِنَبِيٍّ أَن يَغُلَّ translated as, 'And it is not (conceivable) for a prophet to misappropriate the spoils - 161', has a particular back-ground of its revelation. As a corollary, the problem of 'Ghulul', that is, misappropriation in the spoils, comes into focus.
Misappropriation in the spoils: A sin which cannot be ascribed to any prophet by any stretch of imagination:
The background, as narrated by al-Tirmidhi, is that a sheet was found missing from the spoils collected in the battle of Badr. Some people said that the sheet may have been, perhaps, taken by the Holy Prophet ﷺ . If those who said that were hypocrites, the source speaks for itself. May be, this came from a less-initiated
The gentle way the Prophet is asked to deal with the believers (in this context those who had disobeyed him in quitting their posts, incurring defeat in the battle) is equally essential in any Muslim leader. Moderation is indispensable for him. This lenient attitude is required not only in normal, daily life but also in dealings between Muslims and non-Muslims, even where, due to the disobedience of certain people, a victory turns into a defeat. Unless the leader shows broad-mindedness and high thinking, a powerful polity cannot be established. Mistakes, however grave their outcome, if committed without any evil intention, are pardonable. The leader, therefore, should overlook this type of error while dealing with people. He should be such a great well-wisher of his people that he should pray to God for their guidance. Indeed, the good leader so values his people that he takes decisions on matters of importance only after consulting them.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.