Sahih al-Bukhari, Book 57, Hadith 46 (Bukhari 3009)

Narrated Jabir bin `Abdullah:

While Allah's Messenger (ﷺ) was distributing the booty at Al-Ja'rana, somebody said to him "Be just (in your distribution)." The Prophet (ﷺ) replied, "Verily I would be miserable if I did not act justly."