What do the learned scholars say about the issue that when renting a house or shop, the landlord takes an advance payment and keeps deducting the rent from this amount. When this amount is exhausted, he vacates the house. The second case is that shop owners take an advance payment as a security when renting it. And then they also take the rent every month as a rule. When the tenant has to vacate the house or shop, he takes the advance payment from the landlord, and leaves the house. What is the ruling in the light of Shariah whether these two cases are permissible or not? Please give a detailed answer.
Both of the above cases are permissible.
کمافی الفتاوی الھندیۃ: وأما حكمها فوجوب الحفظ على المودع وصيرورة المال أمانة في يده ووجوب أدائه عند طلب مالكه، كذا في الشمني.الوديعة لا تودع ولا تعار ولا تؤاجر ولا ترهن، وإن فعل شيئا منها ضمن، كذا في البحر الرائق اھ(338/4)۔