Sunan Ibn Majah, Book 12, Hadith 49 (Ibn Majah 2185)

It was narrated from Dawud bin Salih Al Madani that his father said:

I heard Abu Sa'eed Al-Khudri say: "The Messenger of Allah (ﷺ) said: 'Transactions may only be done by mutual consent."'