Ibn al-Hajj al-Maliki {May Allah have mercy upon him} said:
“If a woman demands her right to religious education from her husband and brings the issue to a judge, she is justified in demanding this right.
It is her right that either her husband should teach her or allow her to go elsewhere to acquire education in Islam.
The judge must compel the husband to fulfill her demand in the same way that he would in the matter of her worldly rights since her right in matters of religion are most essential and important.”
{Al-Madkhal ilas’ Sunan, Volume 2 pg. 277}