Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates that it has been prohibited to go ahead and buy goods from caravan people (before they reach the market). If someone goes ahead and buys goods from the caravan people, then after coming to the market, the seller has the option (to annul the sale).