It is inconceivable that a prophet would ever dishonestly take something from the battle gains. Anyone who does so will carry it with him on the Day of Resurrection, when each soul will be fully repaid for what it has done: no one will be wronged.
No prophet could (ever) be false to his trust. If any person is so false, He shall, on the Day of Judgment, restore what he misappropriated; then shall every soul receive its due,- whatever it earned,- and none shall be dealt with unjustly.