It is narrated from Sayyiduna Hakim bin Hizam (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The buyer and the seller have the option as long as they have not separated."
Hadith Referenceالمعجم الكبير للطبراني / باب الحاء / 3104