Urwa bin Mudaris reported,

I came to the Messenger of Allah ﷺ at Muzdalifa as he was going out to pray. I said, "Messenger of Allah, I have come from the two mountains of Tayyi. I have exhausted my mount and worn myself out. By Allah, I did not leave a single hill without stopping at it. Is there a valid pilgrimage for me?"The Messenger of Allah ﷺ said, "Whoever attends this prayer of ours and stands with us until we depart, having already stood at Arafah before this, by night or by day, has completed his pilgrimage and fulfilled its rites."

Tirmidhi 891

Sahih

حدثنا ابن أبي عمر حدثنا سفيان عن داود بن أبي هند وإسمعيل بن أبي خالد وزكريا بن أبي زائدة عن الشعبي

عن عروة بن مضرس بن أوس بن حارثة بن لام الطائي قال

أتيت رسول الله ﷺ بالمزدلفة حين خرج إلى الصلاة فقلت يا رسول الله إني جئت من جبلي طيئ أكللت راحلتي وأتعبت نفسي والله ما تركت من حبل إلا وقفت عليه فهل لي من حج فقال رسول الله ﷺ من شهد صلاتنا هذه ووقف معنا حتى ندفع وقد وقف بعرفة قبل ذلك ليلا أو نهارا فقد أتم حجه وقضى تفثه

الترمذي 891صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Hajj
Chapter
Whoever reaches the imam at Muzdalifah has completed the Hajj
Numbering
Darussalam 891
Tirmidhi 891