"The Messenger of Allah (ﷺ) prohibited selling the spoils of war until it has been distributed."

There is something on this topic from Abu Hurairah.

This Hadith is Gharib.
Jami` at-Tirmidhi Book 21, Hadith 22