The Prophet ﷺ offered the Zuhr, ʿAsr, Maghrib and the ʿIsha' prayers and slept for a while at a place called Al-Muhassab and then rode to the Kaʿba and performed Tawaf round it . (Using translation from Bukhārī 1756)
أَنَّ النَّبِيَّ ﷺ «صَلَّى الظُّهْرَ وَالْعَصْرَ وَالْمَغْرِبَ وَالْعِشَاءَ وَرَقَدَ رَقْدَةً ثُمَّ رَكِبَ وَسَارَ إِلَى الْبَيْتِ فَطَافَ بِهِ»