Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) says that the Messenger of Allah (peace and blessings be upon him) forbade "selling the spoils of war before they are distributed, in the year of Khaybar."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 10850