It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that "the Messenger of Allah (peace and blessings be upon him) forbade that a person should depart (from Makkah) until his last act is with the House (its tawaf), except menstruating women, to whom the Messenger of Allah (peace and blessings be upon him) granted a concession." Muhammad bin Yahya bin Abi Umar recorded it with a da'if (weak) chain because it contains Ibrahim bin Yazid al-Makki, who is a weak narrator; Ibn Majah also recorded it, but his narration does not contain the words from "except menstruating women" to the end.
Hadith Takhrij«رواه محمد بن يحيى بن أبي عمر بسند ضعيف؛ لضعف إبراهيم بن يزيد المكي» «أخرجه سنن ابن ماجه برقم: 3071، وأخرجه المعجم الكبير للطبراني برقم: 13460»