(56) باب غَزْوَةُ الطَّائِفِ فِي شَوَّالٍ سَنَةَ ثَمَانٍ
Narrated Anas:
The Prophet (ﷺ) gathered some people of Ansar and said, "The People of Quraish are still close to their Pre-lslamic period of ignorance and have suffered a lot, and I want to help them and attract their hearts (by giving them the war booty). Won't you be pleased that the people take the worldly things) and you take Allah's Messenger (ﷺ) with you to your homes?" They said, "Yes, (i.e. we are pleased with this distribution)." The Prophet (ﷺ) said, "'If the people took their way through a valley and the Ansar took their way through a mountain pass, then I would take the Ansar's valley or the Ansar's mountain pass."
Reference: Sahih al-Bukhari 4334
In-book reference: Book 64, Hadith 363
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 5, Book 59, Hadith 623