Believers, your slaves and any who have not yet reached puberty should ask your permission to come in at three times of day: before the dawn prayer; when you lay your garments aside in the midday heat; and after the evening prayer. These are your three times for privacy; at other times, there is no blame on you or them if you move around each other freely. In this way God makes messages clear: God is all knowing, all wise.
O ye who believe! let those whom your right hands possess, and the (children) among you who have not come of age ask your permission (before they come to your presence), on three occasions: before morning prayer; the while ye doff your clothes for the noonday heat; and after the late-night prayer: these are your three times of undress: outside those times it is not wrong for you or for them to move about attending to each other: Thus does Allah make clear the Signs to you: for Allah is full of knowledge and wisdom.