It is narrated from Sayyiduna Anas bin Malik, may Allah be pleased with him, that the Messenger of Allah ﷺ delivered a sermon during his (last) illness. After praising and glorifying Allah, he said: "The Ansar have fulfilled their duty; now their debt remains upon you. Accept the good deeds of their virtuous ones and overlook the mistakes of their wrongdoers."
Hadith Referenceالسنن المأثورة / باب عمارة الأرضين / 432
Hadith Takhrijصحیح بخاری، مناقب الانصار، باب قول النبي ﷺ اقبلوا من محسنهم وتجاوزوا عن مسيئهم، رقم: 3799، صحیح مسلم، فضائل الصحابة، باب من فضائل الانصار رضی اللہ عنہم، رقم: 2510