Sahih Bukhari Volume 8, Book 73, Hadith Number 85.

Narated By Ibn Mas’ud : Once Allah’s Apostle 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 Apostle 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.”