Sayyiduna Ibn Umar (may Allah be pleased with them both) narrates: "Whoever performs Hajj, his last encounter should be with the House (the Ka'bah), except for menstruating women, to whom the Messenger of Allah (peace and blessings be upon him) granted a concession."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13336