كتاب الحج
15
The Book of Pilgrimage
(67)
Chapter: The farewell Tawaf is obligatory, but it is waived in the case of menstruating women
(67)
باب وُجُوبِ طَوَافِ الْوَدَاعِ وَسُقُوطِهِ عَنِ الْحَائِضِ

'A'isha (Allah be pleased with her) reported:

We feared that Safiyyah might have entered the period of menses before performing Tawaf Ifada. Allah's Messenger (ﷺ) came to us and said: Is Safiyyah going to detain us? Thereupon we said: She has performed Tawaf Ifada. He (the Holy Prophet) said: Then there is no detention (for us) now.
وَحَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ بْنِ قَعْنَبٍ، حَدَّثَنَا أَفْلَحُ، عَنِ الْقَاسِمِ بْنِ مُحَمَّدٍ، عَنْ عَائِشَةَ، قَالَتْ كُنَّا نَتَخَوَّفُ أَنْ تَحِيضَ، صَفِيَّةُ قَبْلَ أَنْ تُفِيضَ - قَالَتْ - فَجَاءَنَا رَسُولُ اللَّهِ صلى الله عليه وسلم فَقَالَ ‏"‏ أَحَابِسَتُنَا صَفِيَّةُ ‏"‏ ‏.‏ قُلْنَا قَدْ أَفَاضَتْ ‏.‏ قَالَ ‏"‏ فَلاَ إِذًا ‏"‏ ‏.‏
Reference : Sahih Muslim 1211 ad
In-book reference : Book 15, Hadith 429
USC-MSA web (English) reference : Book 7, Hadith 3063
  (deprecated numbering scheme)