Abdullah bin Zayd bin Asim reported,

When Allah granted His Messenger ﷺ the spoils on the day of Hunayn, he distributed them among the people, giving to those whose hearts were to be reconciled, but he gave nothing to the Ansar. They seemed to feel some resentment, since they did not receive what others had received. So he addressed them, saying, "Company of the Ansar, did I not find you misguided, and Allah guided you through me? You were divided, and Allah united you through me. You were poor, and Allah made you rich through me?"Whenever he said something, they replied, "Allah and His Messenger have been most gracious."He asked, "What prevents you from answering the Messenger of Allah ﷺ?"Whenever he said something, they replied, "Allah and His Messenger have been most gracious."He said, "If you wished, you could say, 'You came to us in such and such a state.' Are you not pleased that the people should go away with sheep and camels, while you go away with the Prophet ﷺ to your dwellings? Were it not for the Hijrah, I would be one of the Ansar. If the people took one path through a valley or mountain pass, and the Ansar took another, I would take the path of the Ansar. The Ansar are the inner garment, and the people are the outer garment. After me, you will encounter favoritism, so be patient until you meet me at the Pool."

Bukhari 4330

Sahih

حدثنا موسى بن إسماعيل حدثنا وهيب حدثنا عمرو بن يحيى عن عباد بن تميم

عن عبد الله بن زيد بن عاصم قال

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

البخاري 4330صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Expedition of Taif in Shawwal, year eight
Numbering
Darussalam 4330
Bukhari 4330