The Prophet ﷺ said, "The buyer and seller each have the right of choice as long as they have not parted, or until one of them says to the other, 'Choose.'" And sometimes he said, "Or it is a sale with the option."
قال النبي ﷺ: البيعان بالخيار ما لم يتفرقا، أو يقول أحدهما لصاحبه: أختر وربما قال: أو بيع خيار.
Bukhari narrated it in the Book of Sales (2109), and Muslim in the Book of Sales (1531/000), both from the hadith of Hammad bin Zayd, who said, Ayub narrated to us, from Nafi, from Ibn Umar, who mentioned it.