Narrated by Sayyiduna Ibn Abbas (may Allah be pleased with both of them): The people, after completing the rites of Hajj, would return (to their respective homelands and regions) from every direction. So the Messenger of Allah (peace and blessings be upon him) commanded them: "That their last act should be (to spend time in) circumambulation at the House of Allah (the Ka'bah)."
Hadith Referenceمسند اسحاق بن راهويه / كتاب المناسك / 321
Hadith Takhrij«مسلم ، كتاب الحج ، باب وجوب طواف الوداع و سقوطه عن الحائض ، رقم : 1327 . سنن ابوداود ، كتاب المناسك ، باب فى الوداع ، رقم : 2002 . سنن ابن ماجه ، رقم : 3070 . مسند احمد : 222/1»
Tawoos (may Allah have mercy on him) narrated that it was commanded that their last moments be spent at the House of Allah (performing Tawaf), except for a menstruating woman, because she has been granted permission or concession.
Hadith Referenceمسند اسحاق بن راهويه / كتاب المناسك / 322
Hadith Takhrij«بخاري ، كتاب الحج ، باب طواف الوداع ، رقم : 1755 . مسلم ، كتاب الحج ، باب وجوب طواف الوداع الخ ، رقم : 1328 . سنن ترمذي ، رقم : 944»