Anas ibn Malik reported: The Messenger of Allah, peace and blessings be upon him, said, “If you make a judgment, be just. If you have to kill, kill in the best manner. Verily, Allah Almighty is excellent and he loves excellence.”
Source: al-Mu’jam al-Awsaṭ 5884
Grade: Jayyid (very good) according to Al-Albani
عَنْ أَنَسٍ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا حَكَمْتُمْ فَاعْدِلُوا وَإِذَا قَتَلْتُمْ فَأَحْسِنُوا فَإِنَّ اللَّهَ عَزَّ وَجَلَّ مُحْسِنٌ يُحِبُّ الإِحْسَانَ
5884 المعجم الأوسط للطبراني باب الميم من اسمه محمد
469 المحدث الألباني خلاصة حكم المحدث إسناده جيد في السلسلة الصحيحة