Sunan Ibn Majah, Book 25, Hadith 189 (Ibn Majah 3072)

It was narrated that Ibn ‘Abbas said:

“The people were going in all directions, and the Messenger of Allah (ﷺ) said: ‘No one should depart until the last thing he does is (Tawaf around) the House.’”