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. [Sahih/Authentic] - Al-Bukhari and Muslim
"«أُمِرَ الناس أن يكون آخر عَهْدِهِمْ بالبيت، إلا أنه خُفِّفَ عن المرأة الحائض». [صحيح.] - [متفق عليه.]"