Abdullah bin Umar reported,

The Messenger of Allah ﷺ said, "When two men make a transaction, each of them has the option to cancel as long as they have not parted and are still together, or until one of them gives the other the choice. If they conclude the sale on that basis, the sale is binding. And if they part after concluding the transaction, and neither of them has cancelled the sale, then the sale is binding."

Azami 5441

Sahih

عن ابن عمر

عن رسول الله ﷺ أنه قال: إذا تبايع الرجلان فكل واحد منهما بالخيار ما لم يتفرقا، وكانا جميعا، أو يخير أحدهما الآخر، فتبايعا على ذلك، فقد وجب البيع. وإن تفرقا بعد أن يتبايعا، ولم يترك واحد منهما البيع فقد وجب البيع.

الأعظمي 5441صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Sales
Chapter
Rulings on sales and trade
Section
Khiyar al-majlis for the two parties to a sale
Numbering
Jami al-Kamil 5441 (2nd edition)
Azami 5441