The earnest money deposit is a specific amount intended for a particular purpose before or during the contracting process, and it doesn't automatically become part of the sale price.
Key points
Ask the bank in writing: When is it refundable?
When can it be deducted?
And does it become part of the down payment if the Murabaha transaction is completed?
The most important point is that you shouldn't pay any amount before understanding its purpose and what will happen to it if the deal falls through.