Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: "The people were ordered that their last time should be at the House, but the menstruating woman has been granted a concession in this."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9746