Monastery

Webster's Dictionary of the English Language

·noun A house of religious retirement, or of secusion from ordinary temporal concerns, especially for monks;

— more rarely applied to such a house for females.