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".
The Prophet Muhammad ﷺ was known for his fairness in all his dealings, so this hadith serves as an example of how we should conduct ourselves when engaging in transactions with others. We must always remember that everyone has the right to change their mind about something before parting ways, so we must be understanding and respectful of this fact when dealing with others.