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

Sunan Ibn Majah Book 12, Hadith 56