This is permissible.

Is it allowed for a woman to pray to Allah to give her someone (she knows) as a husband, not because of her desires but she wants to learn from him, as he has a lot of knowledge and that she will feel comfortable learning this way.

Manners |