Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) says: Jibril (peace be upon him) took Sayyiduna Ibrahim (peace be upon him) to Mina, and there he prayed Zuhr, Asr, Maghrib, Isha and the morning prayer. Then he went from Mina to Arafat and prayed the two prayers there, then stayed until the sun disappeared. Then he brought him to Muzdalifah, where he spent the night and prayed the morning prayer in the way the Muslims pray it at its earliest; then he stood there in the way the Muslims pray it at its latest. Then he went to Mina, stoned, sacrificed and shaved his head. Then Allah Almighty revealed to Muhammad (peace and blessings be upon him): "Follow the religion of Ibrahim (peace be upon him), the upright, and he was not of the polytheists." [Surah al-Nahl: 123].
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 9643