Is it a 2nd hand house?
Your solicitor should have insisted on the clause being in the contract. Do you have a copy to check if something along the following lines is included?
'This contract is subject to the purchasers obtaining a loan sufficient to enable them to purchase the property herein and the said loan approval being valid and ready for drawdown at closing date hereof and in the event that the said loan approval is not obtained or is not valid and ready for drawdown at the closing date, the the purchasers shall be entitled to rescind this contract, in which case they shall be refunded their deposit in full, without interest, costs or compensation thereon. Furthermore, this contract is subject to the purchasers being able to comply with all loan conditions attaching to any such Loan approval received from haven mortgages and in the event that the purchasers cannot or do not comply with any of these conditions by the closing date herein, then once again the purchasers can rescind this contract in which they are entitled to a full refund of their deposit without interest, costs or compensation thereon.'