Language:
كتاب مناقب الأنصار
63  
Merits of the Helpers in Madinah (Ansaar)
(11)
Chapter: “Accept the good of the good-doers amongst them, and excuse the wrong-doers.”
(11)
باب قَوْلُ النَّبِيِّ صلى الله عليه وسلم ‏"‏ اقْبَلُوا مِنْ مُحْسِنِهِمْ وَتَجَاوَزُوا عَنْ مُسِيئِهِمْ ‏"
Sahih al-Bukhari 3799

Narrated Anas bin Malik:

Abu Bakr and Al-`Abbas passed by one of the gatherings of the Ansar who were weeping then. He (i.e. Abu Bakr or Al-`Abbas) asked, "Why are you weeping?" They replied, "We are weeping because we remember the gathering of the Prophet (ﷺ) with us." So Abu Bakr went to the Prophet (ﷺ) and told him of that. The Prophet (ﷺ) came out, tying his head with a piece of the hem of a sheet. He ascended the pulpit which he never ascended after that day. He glorified and praised Allah and then said, "I request you to take care of the Ansar as they are my near companions to whom I confided my private secrets. They have fulfilled their obligations and rights which were enjoined on them but there remains what is for them. So, accept the good of the good-doers amongst them and excuse the wrongdoers amongst them."

حَدَّثَنِي مُحَمَّدُ بْنُ يَحْيَى أَبُو عَلِيٍّ، حَدَّثَنَا شَاذَانُ، أَخُو عَبْدَانَ حَدَّثَنَا أَبِي، أَخْبَرَنَا شُعْبَةُ بْنُ الْحَجَّاجِ، عَنْ هِشَامِ بْنِ زَيْدٍ، قَالَ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ، يَقُولُ مَرَّ أَبُو بَكْرٍ وَالْعَبَّاسُ ـ رضى الله عنهما ـ بِمَجْلِسٍ مِنْ مَجَالِسِ الأَنْصَارِ وَهُمْ يَبْكُونَ، فَقَالَ مَا يُبْكِيكُمْ قَالُوا ذَكَرْنَا مَجْلِسَ النَّبِيِّ صلى الله عليه وسلم مِنَّا‏.‏ فَدَخَلَ عَلَى النَّبِيِّ صلى الله عليه وسلم فَأَخْبَرَهُ بِذَلِكَ ـ قَالَ ـ فَخَرَجَ النَّبِيُّ صلى الله عليه وسلم وَقَدْ عَصَبَ عَلَى رَأْسِهِ حَاشِيَةَ بُرْدٍ ـ قَالَ ـ فَصَعِدَ الْمِنْبَرَ وَلَمْ يَصْعَدْهُ بَعْدَ ذَلِكَ الْيَوْمِ، فَحَمِدَ اللَّهَ وَأَثْنَى عَلَيْهِ، ثُمَّ قَالَ ‏ "‏ أُوصِيكُمْ بِالأَنْصَارِ، فَإِنَّهُمْ كَرِشِي وَعَيْبَتِي، وَقَدْ قَضَوُا الَّذِي عَلَيْهِمْ، وَبَقِيَ الَّذِي لَهُمْ، فَاقْبَلُوا مِنْ مُحْسِنِهِمْ، وَتَجَاوَزُوا عَنْ مُسِيئِهِمْ ‏"‏‏.‏
Reference : Sahih al-Bukhari 3799
In-book reference : Book 63, Hadith 24
USC-MSA web (English) reference : Vol. 5, Book 58, Hadith 143
  (deprecated numbering scheme)