Wife leaving the house

Is the wife obliged to ask her husband for permission to go somewhere when he is not at home?
Regarding this issue, the scholar of Shafi’i madhab, Ibn Hajar al-Haytami, in his book “Tuhfat al-Muhtaj” writes the following: “It is a sin and disobedience (depriving wife of support) if the wife leaves house, that is, the place of residence where her husband is settled, even in his absence (for example, on departure) without permission or a strong assumption that he does not mind its consequences.”
The exceptions are cases when:
- ) there is a danger that the entire house or a part of it may collapse;
- ) there is a danger to life;
- ) there is a danger from a wicked person or thief encroaching on the property;
- ) there is a need to go to a Sharia judge (Imam) to demand from her husband what she is entitled to (provision, etc.);
- ) it is necessary to obtain necessary religious (primary) knowledge, an answer to a Sharia question, which (knowledge and answer) cannot be given to her by husband or her mahrams (brother, etc.).