Surah An-Nur, Ayah 29
Quran 24:29 · Juz 18 · Medinan
لَّيۡسَ عَلَيۡكُمۡ جُنَاحٌ أَن تَدۡخُلُواْ بُيُوتًا غَيۡرَ مَسۡكُونَةٖ فِيهَا مَتَٰعٞ لَّكُمۡۚ وَٱللَّهُ يَعۡلَمُ مَا تُبۡدُونَ وَمَا تَكۡتُمُونَ
Laisa ‘alaikum junāḥun an tadkhulū buyūtan gaira maskūnatin fīhā matā‘ul lakum, wallāhu ya‘lamu mā tubdūna wa mā taktumūn(a).
There is no blame upon you for entering houses not inhabited in which there is convenience[987] for you. And Allāh knows what you reveal and what you conceal.
[987] Some benefit such as rest, shelter, commodities, one's personal belongings, etc.