Sahih Bukhari Volume 008, Book 075, Hadith Number 348.

Narated By '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."