It was narrated from Abu Barzah Al-Aslami that the Messenger of Allah (ﷺ) said:
"The two parties to a transaction have the choice (of annulling it) so long as they have not yet parted." (IT)
English reference (IT): Vol. 3, Book 12, Hadith 2182 (IT)
Arabic reference (IT): Book 12, Hadith 2266 (IT)