Sunan Ibn Majah, Book 12, Hadith 56 (Ibn Majah 2192)

It was narrated from 'Amr bin Shu'aib, from his father, from his grandfather that :

the Prophet (ﷺ) forbade the deal involving earnest money .