The Prophet ﷺ offered the Zuhr, ʿAsr, Maghrib and ʿIsha' prayers and slept for a while at a place called Al-Mahassab and then he rode towards the Kaʿba and performed Tawaf (al-Wadaʿ).
عَنِ النَّبِيِّ ﷺ أَنَّهُ صَلَّى الظُّهْرَ وَالْعَصْرَ وَالْمَغْرِبَ وَالْعِشَاءَ وَرَقَدَ رَقْدَةً بِالْمُحَصَّبِ ثُمَّ رَكِبَ إِلَى الْبَيْتِ فَطَافَ بِهِ