Sunan Ibn Majah, Book 12, Hadith 47 (Ibn Majah 2183)

It was narrated from Samurah 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. "