Question: Is it permissible for a woman to sleep only in her own designated room, as long as she does not deprive her husband of his lawful right?
Answer: If the husband agrees to this, there is no harm in it, provided that her designated room is safe. If her husband does not agree to this, she has no right to this separation, because it is contrary to custom. The one case in which it is permitted is when the wife stipulates at the time of the marriage contract that, for some reason, she does not like anyone to spend the night with her in the room, because Muslims are bound to fulfil their stipulations.
Reference: Muhammad ibn Salih al-Uthaymin (may Allah have mercy on him)