It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that people were instructed on behalf of the Noble Prophet (peace and blessings of Allah be upon him) that their last act (before leaving Makkah) should be with the Ka'bah (i.e., they should perform Tawaf of the Ka'bah before departing), but this was excused for a menstruating woman.