The Prophet (peace and blessings be upon him) said:
"The buyer and the seller have the option (to cancel the transaction) as long as they have not separated from each other."
Hadith Referenceصحیح الجامع الصغیر / حرف الباء / 2893
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[حم د هـ] عن أبي برزة [هـ ك] عن سمرة. البيوع: الشافعي، الطيالسي، الطحاوي، ابن الجارود، قط، هق، - أبي برزة. الإرواء ١٢٨١.