Anas bin Malik said, "The Prophet ﷺ offered four rakʿat of the Zuhr prayer in Medina and two rakʿat of ʿAsr prayer at Dhul-Hulaifa." I think that the Prophet ﷺ passed the night there till morning.
أَنَّ النَّبِيَّ ﷺ صَلَّى الظُّهْرَ بِالْمَدِينَةِ أَرْبَعًا وَصَلَّى الْعَصْرَ بِذِي الْحُلَيْفَةِ رَكْعَتَيْنِ قَالَ وَأَحْسِبُهُ بَاتَ بِهَا حَتَّى أَصْبَحَ