Sahih al-Bukhari, Hadith 6336

Narrated `Abdullah: The Prophet divided something (among the Muslims) and distributed the shares (of the booty). A man said, "This division has not been made to please Allah." When I informed the Prophet about it, he became so furious that I noticed the signs of anger on his face and he then said, "May Allah bestow His Mercy on Moses, for he was hurt with more than this, yet he remained patient."

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

sunnah.com