Sahih al-Bukhari 6059
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
رَحِمَ اللَّهُ مُوسَى، لَقَدْ أُوذِيَ بِأَكْثَرَ مِنْ هَذَا فَصَبَرَ "
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."
Full reference and source
Sahih al-Bukhari 6059 In-book : Book 78, Hadith 89 USC-MSA web (English) : Vol. 8, Book 73, Hadith 85 (deprecated)
View source on Sunnah.com (opens in a new tab)