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

Narrated Urwah ibn Mudarris at-Ta'i: I came to the Messenger of Allah at the place of halting, that is, al-Muzdalifah. I said: I have come from the mountains of Tayy. I fatigued my mount and fatigued myself. By Allah, I found no hill (on my way) but I halted there. Have I completed my hajj? The Messenger of Allah said: Anyone who offers this prayer along with us and comes over to Arafat before it by night or day will complete his hajj and he may wash away the dirt (of his body).

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

sunnah.com