Answer
A woman (irrespective of whether she is an Alima or not) should leave her
home only when necessary.
An Alima should understand the importance of imparting Deeni knowledge. It
does not behove an Alima to abandon the sacred task of imparting Deeni
knowledge and opt for working for some kufaar.
and Allah Ta’ala Knows Best
Mufti Ebrahim Desai