People were commanded to make (Tawāf around) the Ka‘bah the last thing they do, but an exception was made for the menstruating woman. [Al-Bukhari]
«أُمِرَ الناس أن يكون آخر عَهْدِهِمْ بالبيت، إلا أنه خُفِّفَ عن المرأة الحائض». رواه البخاري