Sayyiduna Jabir bin Abdullah al-Ansari (may Allah be pleased with them both) said: Jibril (peace be upon him) came to the Prophet (peace and blessings be upon him) when the sun had declined and said: "O Muhammad! Stand and pray Zuhr." He (peace and blessings be upon him) stood and prayed Zuhr when the sun had declined. Then he waited until a man's shadow became equal to him; he came to him (peace and blessings be upon him) and said: "O Muhammad (peace and blessings be upon him)! Stand and pray Asr." He (peace and blessings be upon him) stood and prayed Asr. Then he waited until the sun had disappeared, and Jibril (peace be upon him) said: "Stand and pray Maghrib." He (peace and blessings be upon him) stood and prayed it when the sun had completely disappeared. Then he waited until the redness of twilight had gone; he came to him (peace and blessings be upon him) and said: "Stand and pray Isha." He (peace and blessings be upon him) stood, and he (peace and blessings be upon him) prayed. Then he came to him (peace and blessings be upon him) when the dawn began to spread for Subh and said: "O Muhammad! Stand and pray." He (peace and blessings be upon him) stood and prayed Subh. Then on the second day he came when a man's shadow had become equal to him and said: "O Muhammad! Stand and pray Zuhr." He (peace and blessings be upon him) stood and prayed Zuhr. Then he came when a man's shadow had become twice his length and said: "O Muhammad! Stand and pray." He (peace and blessings be upon him) stood and prayed Asr. Then he came for Maghrib at one and the same time, when the sun had disappeared, and said: "Stand and pray Maghrib." Then he came for Isha when the first third of the night had passed and said: "Stand and pray Isha." Then he came for Subh when it had become very light, and Jibril (peace be upon him) said: "Stand and pray Subh." Then he said: "Between these two times is the time of prayer."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 1719