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.