Sahih Muslim, Book 21, Hadith 52 (Muslim 3815)

Ibn 'Umar (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying:

Both parties in a business transaction have the right to annul it so long as they have not separated; except in transactions which have been made subject to the right of parties to annul them.