The Holy Quran 24:27 — Surah An-Nur
Arabic text
يَـٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ لَا تَدْخُلُوا۟ بُيُوتًا غَيْرَ بُيُوتِكُمْ حَتَّىٰ تَسْتَأْنِسُوا۟ وَتُسَلِّمُوا۟ عَلَىٰٓ أَهْلِهَا ۚ ذَٰلِكُمْ خَيْرٌ لَّكُمْ لَعَلَّكُمْ تَذَكَّرُونَ
Translation
O you who have Imaan, do not enter any home besides your own until you have acquired permission (to enter from those inside) and (until you have) greeted (salute) the inhabitants (therefore, first greet with Salaam at the door and then ask permission to enter). This is best for you to keep in mind (whenever you visit people).
Tafsir (excerpt) — Tafsir Usmani
The ruling and etiquette of seeking permission to enter other houses: that is, apart from the house in which one oneself lives, one should not simply walk unannounced into a house where someone else lives: who knows in what state he may be, and whether or not he would like someone to come in at that time.
Preview. The full text opens with JavaScript enabled.