Abu Huraira reported God’s Messenger as saying, “If anyone performs a rak'a of the Morning Prayer before sunrise, he has observed the Morning Prayer; and if anyone performs a rak'a of the afternoon prayer before sunset, he has observed the afternoon prayer.”
God’s Messenger asked me, “How will you act when you are under rulers who make prayer a dead thing, or delay it beyond its proper time?” When I asked what he commanded me to do he replied, “Observe the prayer at its proper time, and if you can say it along with them do so, for it will be a supererogatory prayer for you.”
He also reported God’s Messenger as saying, “If any of you performs a sajda of the afternoon prayer before sunset, he should complete his prayer; and if he is present at a sajda of the Morning Prayer before sunrise, he should complete his prayer.”
Qatada said on the authority of Anas that the Prophet and Zaid b Anas had a meal at daybreak, and when they finished their meal God’s prophet got up to pray and performed the prayer. On being asked how long it was between the end of their meal and their beginning to pray Anas replied that it was about os long as a man takes to recite fifty verses.