It is narrated from Sayyiduna Abu Barzah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: The two persons involved in a transaction have the option (to cancel the sale) as long as they do not separate.
Hadith Referenceالفتح الربانی / أبواب الشروط فى البيع / 5920