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

Tawus reported:

I was in the company of Ibn Abbas (Allah be pleased with them) when Zaid b. Thabit said: Do you give religious verdict that the woman who is in menses is allowed to go without performing the last circumambulation of the House? Ibn 'Abbas (Allah be pleased with them) said to him: Ask such and such woman of the Ansar, if you do not (believe my religious verdict) whether Allah's Messenger (ﷺ) had coimmanded her this. Zaid b Thabit (went to that lady and after getting this verdict attested by her) came back to Ibn Abbas (Allah be pleased with them) smilingly and said: I did not find you but telling the truth.
حَدَّثَنِي مُحَمَّدُ بْنُ حَاتِمٍ، حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ، عَنِ ابْنِ جُرَيْجٍ، أَخْبَرَنِي الْحَسَنُ، بْنُ مُسْلِمٍ عَنْ طَاوُسٍ، قَالَ كُنْتُ مَعَ ابْنِ عَبَّاسٍ إِذْ قَالَ زَيْدُ بْنُ ثَابِتٍ تُفْتِي أَنْ تَصْدُرَ الْحَائِضُ، قَبْلَ أَنْ يَكُونَ آخِرُ عَهْدِهَا بِالْبَيْتِ ‏.‏ فَقَالَ لَهُ ابْنُ عَبَّاسٍ إِمَّا لاَ فَسَلْ فُلاَنَةَ الأَنْصَارِيَّةَ هَلْ أَمَرَهَا بِذَلِكَ رَسُولُ اللَّهِ صلى الله عليه وسلم قَالَ فَرَجَعَ زَيْدُ بْنُ ثَابِتٍ إِلَى ابْنِ عَبَّاسٍ يَضْحَكُ وَهُوَ يَقُولُ مَا أَرَاكَ إِلاَّ قَدْ صَدَقْتَ ‏.‏
Reference : Sahih Muslim 1328b
In-book reference : Book 15, Hadith 425
USC-MSA web (English) reference : Book 7, Hadith 3059
  (deprecated numbering scheme)