It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "The two parties involved in a transaction have the option to cancel the sale before they separate, except in the case of a sale with a stipulated option."
Hadith Referenceالسنن المأثورة / باب في البيوع / 236
Hadith Takhrijصحیح بخاری، البيوع، باب البيعان بالخيار ما لم يتفرقا، رقم: 2111، صحیح مسلم، البيوع، باب ثبوت خيار المجلس للمتبايعين، رقم: 1531