Narrated from Abu Huraira (may Allah be pleased with him) that the Prophet (peace and blessings of Allah be upon him) said: "The seller and the buyer remain at liberty (to cancel or confirm the bargain) as long as they do not separate with mutual consent." © Imam Tirmidhi says:
This hadith is gharib.
Related hadith on this topic