24:27
يَـٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ لَا تَدْخُلُوا۟ بُيُوتًا غَيْرَ بُيُوتِكُمْ حَتَّىٰ تَسْتَأْنِسُوا۟ وَتُسَلِّمُوا۟ عَلَىٰٓ أَهْلِهَا ۚ ذَٰلِكُمْ خَيْرٌ لَّكُمْ لَعَلَّكُمْ تَذَكَّرُونَ
yāayyuhā alladhīna āmanū lā tadkhulū buyūtan ghayra buyūtikum ḥattā tastanisū watusallimū ʿalā ahlihā dhālikum khayrun lakum laʿallakum tadhakkarūna
Believers, do not enter other people’s houses until you have asked permission to do so and greeted those inside- that is best for you: perhaps you will bear this in mind.
O you who believe! Enter not houses other than your own, until you have asked permission and greeted those in them; that is better for you, in order that you may remember.