If you have made an application and have a letter stipulating that the finance has been declined then the contract generally comes to an end and the deposit will be returned.