Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) prohibited going 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).