The people were commanded (by the Holy Prophet) to perform the last circumambulation round the House, but menstruating women were exempted.

Sahih Muslim Book 15, Hadith 424