The Messenger of Allah ﷺ said, "The two parties to a sale each retain the right to cancel as long as they have not parted, unless the sale was made with a stipulated option."
حدثنا إسحاق بن عيسى حدثنا مالك عن نافع
قال رسول الله ﷺ المتبايعان بالخيار ما لم يتفرقا أو يكون البيع خيارا