The Messenger of Allah ﷺ said, "Jibreel led me in prayer at the House twice. He prayed Dhuhr with me when the sun had just passed its zenith and the shadow was the length of a sandal strap. He prayed Asr with me when an object's shadow was equal to its length. He prayed Maghrib with me when the fasting person breaks his fast. He prayed Isha with me when the twilight had vanished. And he prayed Fajr with me when food and drink become forbidden to the fasting person.The next day, he prayed Dhuhr with me when an object's shadow was equal to its length. He prayed Asr with me when an object's shadow was twice its length. He prayed Maghrib with me when the fasting person breaks his fast. He prayed Isha with me until a third of the night had passed. And he prayed Fajr with me when the light had spread.Then he turned to me and said, 'Muhammad, these are the times of the prophets before you, and the proper time is what falls between these two times.'"
حدثنا مسدد حدثنا يحيى عن سفيان حدثني عبد الرحمن بن فلان بن أبي ربيعة عن حكيم بن حكيم عن نافع بن جبير بن مطعم
قال رسول الله ﷺ أمني جبريل عليه السلام عند البيت مرتين فصلى بي الظهر حين زالت الشمس وكانت قدر الشراك وصلى بي العصر حين كان ظله مثله وصلى بي يعني المغرب حين أفطر الصائم وصلى بي العشاء حين غاب الشفق وصلى بي الفجر حين حرم الطعام والشراب على الصائم فلما كان الغد صلى بي الظهر حين كان ظله مثله وصلى بي العصر حين كان ظله مثليه وصلى بي المغرب حين أفطر الصائم وصلى بي العشاء إلى ثلث الليل وصلى بي الفجر فأسفر ثم التفت إلي فقال يا محمد هذا وقت الأنبياء من قبلك والوقت ما بين هذين الوقتين
Its isnad is hasan. Tirmidhi transmitted it in the Book of Prayer, chapter on what has been reported about the times of prayer from the Prophet, hadith 149, from the hadith of Ibn Abu Rabia, with this wording, and said, hasan sahih. Ibn Khuzayma graded it sahih, hadith 325, as did Ibn Jarud, hadith 149, 150, and Hakim, 1/193, and others. 149.