Sahih al-Bukhari 1755
Sahih al-Bukhari · Book 25: Hajj (Pilgrimage) · Tawaf-al-Wada'
Narrated Ibn `Abbas:
حَدَّثَنَا مُسَدَّدٌ ، حَدَّثَنَا سُفْيَانُ ، عَنِ ابْنِ طَاوُسٍ ، عَنْ أَبِيهِ ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ أُمِرَ النَّاسُ أَنْ يَكُونَ آخِرُ عَهْدِهِمْ بِالْبَيْتِ، إِلاَّ أَنَّهُ خُفِّفَ عَنِ الْحَائِضِ.
The people were ordered to perform the Tawaf of the Ka`ba (Tawaf-al-Wada`) as the lastly thing, before leaving (Mecca), except the menstruating women who were excused.