{There is no blame upon you for entering houses not inhabited} meaning: hotels/inns, {in which there is benefit for you}. Al-Suddi said: Meaning, benefits for you from the heat and the cold; so it is not upon him (to seek permission) in them, because they have no occupants who dwell in them.
﴿لَيْسَ عَلَيْكُمْ جُنَاحٌ أَنْ تَدْخُلُوا بُيُوتًا غير مسكونة﴾ يَعْنِي: الْفَنَادِقَ ﴿فِيهَا مَتَاعٌ لَكُمْ﴾ قَالَ السُّدِّيُّ: يَعْنِي: مَنَافِعَ لَكُمْ مِنَ الْحَرِّ وَالْبَرْدِ؛ فَلَيْسَ عَلَيْهِ (أَنْ يَسْتَأْذِنَ) فِيهَا؛ لِأَنَّهُ لَيْسَ لَهَا أهل يسكنونها.