Sahih Muslim, Book 15, Hadith 424 (Muslim 3189)

Ibn Abbas reported:

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