Language:
كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(56)
Chapter: The Ghazwa of At-Taif
(56)
باب غَزْوَةُ الطَّائِفِ فِي شَوَّالٍ سَنَةَ ثَمَانٍ
Sahih al-Bukhari 4335

Narrated `Abdullah:

When the Prophet (ﷺ) distribute the war booty of Hunain, a man from the Ansar said, "He (i.e. the Prophet), did not intend to please Allah in this distribution." So I came to the Prophet (ﷺ) and informed him of that (statement) whereupon the color of his face changed and he said, "May Allah bestow His Mercy on Moses, for he was troubled with more than this, but he remained patient."

حَدَّثَنَا قَبِيصَةُ، حَدَّثَنَا سُفْيَانُ، عَنِ الأَعْمَشِ، عَنْ أَبِي وَائِلٍ، عَنْ عَبْدِ اللَّهِ، قَالَ لَمَّا قَسَمَ النَّبِيُّ صلى الله عليه وسلم قِسْمَةَ حُنَيْنٍ قَالَ رَجُلٌ مِنَ الأَنْصَارِ مَا أَرَادَ بِهَا وَجْهَ اللَّهِ‏.‏ فَأَتَيْتُ النَّبِيَّ صلى الله عليه وسلم فَأَخْبَرْتُهُ، فَتَغَيَّرَ وَجْهُهُ ثُمَّ قَالَ ‏ "‏ رَحْمَةُ اللَّهِ عَلَى مُوسَى، لَقَدْ أُوذِيَ بِأَكْثَرَ مِنْ هَذَا فَصَبَرَ ‏"‏‏.‏
Reference : Sahih al-Bukhari 4335
In-book reference : Book 64, Hadith 364
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 624
  (deprecated numbering scheme)