The Messenger of Allah ﷺ said, "When two men conduct a sale, each of them has the option to revoke it as long as they have not parted and remain together, or until one of them gives the other the choice. If they then conclude the sale on that basis, the sale becomes binding. And if they part after concluding the sale, and neither of them has cancelled it, the sale is binding."
حدثنا قتيبة حدثنا الليث عن نافع
عن رسول الله ﷺ أنه قال إذا تبايع الرجلان فكل واحد منهما بالخيار ما لم يتفرقا وكانا جميعا أو يخير أحدهما الآخر فتبايعا على ذلك فقد وجب البيع وإن تفرقا بعد أن يتبايعا ولم يترك واحد منهما البيع فقد وجب البيع