From Sahih Bukhari (Hadith 1764):
Narrated Anas bin Malik: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)
Reference: Bukhari 1764