Abdullah bin Abbas reported,

The Prophet ﷺ climbed the pulpit, and this was the last gathering in which he sat. He had a cloak draped over his shoulders and had bound his head with an oily band. He praised Allah and extolled Him, then said, "People, come close to me." So they gathered around him.Then he said, "To proceed. This tribe of the Ansar will diminish in number while other people increase. So whoever takes charge of any affair of the nation of Muhammad ﷺ and is able to harm or benefit anyone through it, let him accept from those of them who do well and overlook the faults of those who err."

Bukhari 927

Sahih

حدثنا إسماعيل بن أبان قال حدثنا ابن الغسيل قال حدثنا عكرمة

عن ابن عباس رضي الله عنهما قال

صعد النبي ﷺ المنبر وكان آخر مجلس جلسه متعطفا ملحفة على منكبيه قد عصب رأسه بعصابة دسمة فحمد الله وأثنى عليه ثم قال أيها الناس إلي فثابوا إليه ثم قال أما بعد فإن هذا الحي من الأنصار يقلون ويكثر الناس فمن ولي شيئا من أمة محمد ﷺ فاستطاع أن يضر فيه أحدا أو ينفع فيه أحدا فليقبل من محسنهم ويتجاوز عن مسيهم

البخاري 927صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Friday
Chapter
Whoever said "amma badu" in the sermon after praising Allah
Numbering
Darussalam 927
Bukhari 927