Answer:
(Fatwa: 1488/1215=D/1430)
According to Imam Abu Hanifah, it is allowable to give building on rent for abovementioned matters, whereas it is makrooh according to Sahibain (Imam Abu Yusuf & Imam Muhammad); therefore it is better to give it for other objectives.
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband
