An-Noor • BN-TAFSEER-IBN-E-KASEER
﴿ يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ لِيَسْتَـْٔذِنكُمُ ٱلَّذِينَ مَلَكَتْ أَيْمَٰنُكُمْ وَٱلَّذِينَ لَمْ يَبْلُغُوا۟ ٱلْحُلُمَ مِنكُمْ ثَلَٰثَ مَرَّٰتٍۢ ۚ مِّن قَبْلِ صَلَوٰةِ ٱلْفَجْرِ وَحِينَ تَضَعُونَ ثِيَابَكُم مِّنَ ٱلظَّهِيرَةِ وَمِنۢ بَعْدِ صَلَوٰةِ ٱلْعِشَآءِ ۚ ثَلَٰثُ عَوْرَٰتٍۢ لَّكُمْ ۚ لَيْسَ عَلَيْكُمْ وَلَا عَلَيْهِمْ جُنَاحٌۢ بَعْدَهُنَّ ۚ طَوَّٰفُونَ عَلَيْكُم بَعْضُكُمْ عَلَىٰ بَعْضٍۢ ۚ كَذَٰلِكَ يُبَيِّنُ ٱللَّهُ لَكُمُ ٱلْءَايَٰتِ ۗ وَٱللَّهُ عَلِيمٌ حَكِيمٌۭ ﴾
“O YOU who have attained to faith! At three times [of day], let [even] those whom you rightfully possess, as well as those from among you who have not yet attained to puberty, ask leave of you [before intruding upon your privacy]: before the prayer of daybreak, and whenever you lay aside your garments in the middle of the day, and after the prayer of nightfall: the three occasions on which your nakedness is likely to be bared. Beyond these [occasions], neither you nor they will incur any sin if they move [freely] about you, attending to [the needs of] one another. In this way God makes clear unto you His messages: for God is all-knowing, wise!”
Please check ayah 24:60 for complete tafsir.