It is no fault on your part to enter houses not used for living in, which serve some (other) use for you:(2982) And Allah has knowledge of what ye reveal and what ye conceal.
2982 The rule about dwelling houses is strict, because privacy is precious, and essential to a refined, decent, and well-ordered life. Such a rule of course does not apply to houses used for other useful purposes, such as an inn or caravanserai, or a shop, or a warehouse. But even here, of course, implied permission from the owner is necessary as a matter of common-sense. The question in this passage is that of refined privacy, not that of rights of ownership.