The Messenger of Allah ﷺ said, "The two parties to a sale each retain the right to cancel until they part from one another, unless it was a sale with a stipulated option."Sometimes Nafi would add, "or one of them says to the other, 'Choose.'"
أخبرنا قتيبة قال حدثنا الليث عن نافع
قال رسول الله ﷺ البيعان بالخيار حتى يفترقا أو يكون بيع خيار وربما قال نافع أو يقول أحدهما للآخر اختر
Bukhari narrated it in the Book of Sales, Chapter "If One of the Two Gives the Other the Option after the Sale, Then the Sale Is Binding," Hadith: 2112, and Muslim, see the preceding hadith, Hadith: 44/1531, from Qutayba, with the same wording, and it is also in Al-Kubra, Hadith: 6063.