Surah An-Nur, Ayah 58 (24:58)
يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُواْ لِيَسۡتَـٔۡذِنكُمُ ٱلَّذِينَ مَلَكَتۡ أَيۡمَٰنُكُمۡ وَٱلَّذِينَ لَمۡ يَبۡلُغُواْ ٱلۡحُلُمَ مِنكُمۡ ثَلَٰثَ مَرَّٰتٖۚ مِّن قَبۡلِ صَلَوٰةِ ٱلۡفَجۡرِ وَحِينَ تَضَعُونَ ثِيَابَكُم مِّنَ ٱلظَّهِيرَةِ وَمِنۢ بَعۡدِ صَلَوٰةِ ٱلۡعِشَآءِۚ ثَلَٰثُ عَوۡرَٰتٖ لَّكُمۡۚ لَيۡسَ عَلَيۡكُمۡ وَلَا عَلَيۡهِمۡ جُنَاحُۢ بَعۡدَهُنَّۚ طَوَّٰفُونَ عَلَيۡكُم بَعۡضُكُمۡ عَلَىٰ بَعۡضٖۚ كَذَٰلِكَ يُبَيِّنُ ٱللَّهُ لَكُمُ ٱلۡأٓيَٰتِۗ وَٱللَّهُ عَلِيمٌ حَكِيمٞ ٥٨
Arabic: King Fahd Complex Hafs text.
English translation
58. O you who believe! Let your slaves and slave-girls, and those among you who have not come to the age of puberty ask your permission (before they come to your presence) on three occasions: before Fajr (morning) Salât (prayer), and while you put off your clothes for the noonday (rest), and after the ‘Ishâ’ (late-night) Salât (prayer). (These) three times are of privacy for you; other than these times there is no sin on you or on them to move about, attending to each other. Thus Allâh makes clear the Ayât (the Verses of this Qur’ân, showing proofs for the legal aspects of permission for visits) to you. And Allâh is All-Knowing, All-Wise.
Hilali and Khan (QuranEnc.com)