Maymun Abu Abdullah reported,

Zayd bin Arqam said, while I was listening, "We stopped with the Messenger of Allah ﷺ in a valley called the Valley of Khumm. He ordered the prayer to be performed, and he prayed it in the intense midday heat. Then he addressed us, and a garment was held up over the Messenger of Allah ﷺ on a samura tree to shade him from the sun. He said, 'Do you not know, do you not bear witness, that I have a greater claim over every believer than he has over himself?' They replied, 'Yes indeed.' He said, 'Whoever I am his master, Ali is his master. O Allah, take as an enemy whoever takes him as an enemy, and befriend whoever befriends him.'"

Ahmad 19325

Sahih

حدثنا عفان حدثنا أبو عوانة عن المغيرة عن أبي عبيد

عن ميمون أبي عبد الله قال

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

أحمد 19325صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Zayd bin Arqam
Numbering
Darussalam 19325
Ahmad 19325