It is narrated from Sayyiduna Abu Mas'ud (may Allah be pleased with him) that Sayyiduna Jibril (peace be upon him) came to the Prophet (peace and blessings be upon him) and said: "Stand up and pray." That was the time of "duluk al-shams" (the declining of the sun). He (peace and blessings be upon him) stood and prayed four rak'ahs of Zuhr. Then he came to him (peace and blessings be upon him) when the shadow of a thing had become equal to its length, and said: "Stand and pray," and he (peace and blessings be upon him) prayed four rak'ahs of Asr. Then he came to him (peace and blessings be upon him) when the sun had set, and said: "Stand and pray." He (peace and blessings be upon him) prayed three rak'ahs of Maghrib. Then he came to him (peace and blessings be upon him) when the redness of twilight had disappeared, and said: "Stand and pray," and he (peace and blessings be upon him) prayed four rak'ahs of the later Isha. Then he came to him (peace and blessings be upon him) when the dawn broke, and said: "Stand and pray," and he (peace and blessings be upon him) prayed two rak'ahs of Subh. Then the next day he came at midday, when the shadow of a thing had become equal to it, and said: "Stand and pray," and he (peace and blessings be upon him) prayed four rak'ahs of Zuhr. Then he came to him (peace and blessings be upon him) when its shadow had become twice its length, and said: "Stand and pray," and he (peace and blessings be upon him) prayed four rak'ahs of Asr. Then he came at the same time as the day before, when the sun had set, and said: "Stand and pray," and he (peace and blessings be upon him) prayed three rak'ahs of Maghrib. Then he came after the redness of twilight had disappeared and it had become dark, and said: "Stand and pray," and he (peace and blessings be upon him) prayed four rak'ahs of Isha. Then he came when the dawn had become bright, and said: "Stand and pray." He (peace and blessings be upon him) prayed two rak'ahs of Subh. Then he said: "Between these two times is the time of prayer."
Abu Bakr bin Muhammad bin Amr bin Hazm did not hear this from Abu Mas'ud al-Ansari; it is only a report that reached him (balagh), and it has also been narrated in another, mursal hadith.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 1694