Sayyiduna Anas (may Allah be pleased with him) narrated to Qatadah that the Messenger of Allah (peace and blessings be upon him) performed the Zuhr, Asr, Maghrib, and Isha prayers in Mina, then rested for a short while, mounted his ride, went to the Ka'bah, and performed Tawaf of the House of Allah.
Brief Explanation
(Commentary on Hadith 1910)
By this circumambulation (tawaf) is most likely meant the Farewell Circumambulation (Tawaf al-Wada‘), as is evident from the chapter of Imam Bukhari «مَنْ صَلَّى الْعَصْرَ يَوْمَ النَّفْرِ بِالْأَبْطَحِ», and furthermore, Imam Bukhari has also mentioned this hadith in the chapter on the Farewell Circumambulation (1757).