لَيْسَ عَلَيْكُمْ جُنَاحٌ اَنْ تَدْخُلُوْا بُيُوْتًا غَيْرَ مَسْكُوْنَۃٍ فِيْہَا مَتَاعٌ لَّكُمْ۰ۭ وَاللہُ يَعْلَمُ مَا تُبْدُوْنَ وَمَا تَكْتُمُوْنَ۲۹
Laysa AAalaykum junahun an tadkhuloo buyootan ghayra maskoonatin feeha mataAAun lakum waAllahu yaAAlamu ma tubdoona wama taktumoona
There is no harm in going into uninhabited houses where there is some convenience for you, as God has knowledge of what you hide and what you disclose.