Sura An-Noor

24:29

لَّيْسَ عَلَيْكُمْ جُنَاحٌ أَن تَدْخُلُوا۟ بُيُوتًا غَيْرَ مَسْكُونَةٍۢ فِيهَا مَتَٰعٌۭ لَّكُمْ ۚ وَٱللَّهُ يَعْلَمُ مَا تُبْدُونَ وَمَا تَكْتُمُونَ

Men ni gör ingenting klandervärt om ni går in i hus som inte är bostäder och som innehåller det som är till nytta och nöje för er. [Men glöm inte att] Gud vet vad ni gör öppet lika väl som det ni vill dölja.

Tafsir 24:29

There is no blame on you, for entering without permission, public houses which are not specifically for any person and which have been prepared for general benefit, such as libraries and shops in markets. Allah knows the actions and conditions which you display and which you hide; none of that is hidden from Him and He shall reward you for them.