كتاب البيوع
21  
The Book of Transactions
(10)
Chapter: Affirming that both parties to a transaction have the option (of canceling it) while they are still together
(10)
باب ثُبُوتِ خِيَارِ الْمَجْلِسِ لِلْمُتَبَايِعَيْنِ ‏‏
Sahih Muslim 1531 a

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.
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، قَالَ قَرَأْتُ عَلَى مَالِكٍ عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ الْبَيِّعَانِ كُلُّ وَاحِدٍ مِنْهُمَا بِالْخِيَارِ عَلَى صَاحِبِهِ مَا لَمْ يَتَفَرَّقَا إِلاَّ بَيْعَ الْخِيَارِ ‏"‏ ‏.‏
Reference : Sahih Muslim 1531a
In-book reference : Book 21, Hadith 52
USC-MSA web (English) reference : Book 10, Hadith 3656
  (deprecated numbering scheme)