Sahih al-Bukhari, Hadith 6059

Narrated Ibn Mas`ud: Once Allah's Messenger divided and distributed (the war booty). An Ansar man said, "By Allah ! Muhammad, by this distribution, did not intend to please Allah." So I came to Allah's Messenger and informed him about it whereupon his face became changed with anger and he said, "May Allah bestow His Mercy on Moses for he was hurt with more than this, yet he remained patient."

حَدَّثَنَا مُحَمَّدُ بْنُ يُوسُفَ، أَخْبَرَنَا سُفْيَانُ، عَنِ الأَعْمَشِ، عَنْ أَبِي وَائِلٍ، عَنِ ابْنِ مَسْعُودٍ ـ رضى الله عنه ـ قَالَ قَسَمَ رَسُولُ اللَّهِ صلى الله عليه وسلم قِسْمَةً، فَقَالَ رَجُلٌ مِنَ الأَنْصَارِ وَاللَّهِ مَا أَرَادَ مُحَمَّدٌ بِهَذَا وَجْهَ اللَّهِ‏.‏ فَأَتَيْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم فَأَخْبَرْتُهُ، فَتَمَعَّرَ وَجْهُهُ وَقَالَ ‏ "‏ رَحِمَ اللَّهُ مُوسَى، لَقَدْ أُوذِيَ بِأَكْثَرَ مِنْ هَذَا فَصَبَرَ ‏" ‏‏.‏

sunnah.com