It is narrated from Ibn Abbas (may Allah be pleased with them) that he said: (After performing Hajj) people would return from every direction, so the Messenger of Allah (peace and blessings be upon him) said: "None of you should return until his last act is the circumambulation of the House (Ka'bah)."
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 1032
Hadith Takhrijأخرجه مسلم، الحج، باب وجوب طواف الوداع وسقوطه عن الحائض (1327)۔