The Messenger of Allah (ﷺ) mentioned about Safiyyah, daughter of Huyayy. He was told that she had menstruated. The Messenger of Allah (ﷺ) said: She may probably detain us. They (the people) said: She has performed the obligatory circumambulation (Tawaf al-Ziyarah). He said: If so, there is no need (of staying any longer).
Sunan Abi Dawud Book 11, Hadith 283