Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) says that the Messenger of Allah (peace and blessings be upon him) forbade buying goods from the trade caravans before they are brought into the market.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 10913