It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) on the day of Khaybar forbade selling the spoils of war before they were distributed.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11099