Sunan Abi Dawud, Book 10, Hadith 1991 (USC-MSA)

Narrated Muharrish al-Ka'bi: The Prophet entered al-Ji'ranah. He came to the mosque (there) and prayed as long as Allah desired; he then wore ihram. Then he rode his camel and faced Batn Sarif till he reached the way which leads to Medina. He returned from Mecca (at night to al-Ji'ranah) as if he had passed the night at Mecca.

حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا سَعِيدُ بْنُ مُزَاحِمِ بْنِ أَبِي مُزَاحِمٍ، حَدَّثَنِي أَبِي مُزَاحِمٌ، عَنْ عَبْدِ الْعَزِيزِ بْنِ عَبْدِ اللَّهِ بْنِ أَسِيدٍ، عَنْ مُحَرِّشٍ الْكَعْبِيِّ، قَالَ دَخَلَ النَّبِيُّ صلى الله عليه وسلم الْجِعْرَانَةَ فَجَاءَ إِلَى الْمَسْجِدِ فَرَكَعَ مَا شَاءَ اللَّهُ ثُمَّ أَحْرَمَ ثُمَّ اسْتَوَى عَلَى رَاحِلَتِهِ فَاسْتَقْبَلَ بَطْنَ سَرِفَ حَتَّى لَقِيَ طَرِيقَ الْمَدِينَةِ فَأَصْبَحَ بِمَكَّةَ كَبَائِتٍ ‏.‏

sunnah.com