(56) باب غَزْوَةُ الطَّائِفِ فِي شَوَّالٍ سَنَةَ ثَمَانٍ
Narrated Anas:
When it was the day of the Conquest (of Mecca) Allah's Messenger (ﷺ) distributed the war booty amongst the people of Quraish which caused the Ansar to become angry. So the Prophet (ﷺ) said, "Won't you be pleased that the people take the worldly things and you take Allah's Messenger (ﷺ) with you? "They said, "Yes." The Prophet (ﷺ) said, "If the people took their way through a valley or mountain pass, I would take my way through the Ansar's valley or mountain pass."
Reference: Sahih al-Bukhari 4332
In-book reference: Book 64, Hadith 361
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 5, Book 59, Hadith 621