How does one catch up with a rak’ah?
Question

If a man comes and joins the prayer when the imam is standing up from rukoo’ (bowing), but he has not yet said “Allahu akbar”, does this count as a rak‘ah for him or not? And why?
Praise be to Allah.If a person joins the congregation when the imam is bowing, one of the following three scenarios applies: 
1-He says takbeerat al-ihram (saying “Allahu akbar” to start the prayer) whilst standing, then he bows whilst the imam is bowing. In this case he has caught up with the rak‘ah with the imam.
2-He says takbeerat al-ihram whilst the imam is bowing, but he bows after the imam has stood up from rukoo’. In this case he is not counted as having caught up with the rak‘ah with the imam, and he has to make it up.
3-He bows straightaway without saying takbeerat al-ihram. In this case his prayer is invalid, because he has omitted one of the pillars or essential parts of the prayer, which is takbeerat al-ihram.
“The fuqaha’ are agreed that whoever catches up with the imam in rukoo’ has caught up with the rak‘ah, because the Prophet (peace and blessings of Allah be upon him) said: ‘Whoever catches up with rukoo’ has caught up with the rak‘ah.’” This was narrated by Abu Dawood, and classed as saheeh by al-Albaani in Irwa’ al-Ghaleel, 496; on p. 262 he said: one of the things that strengthens the hadeeth is the fact that the Sahaabah acted in accordance with this: 
1 – Ibn Mas’ood, who said: “Whoever does not catch up with the imam when he is bowing has not caught up with that rak‘ah.” Its isnaad is saheeh. 
2 – ‘Abd-Allah ibn ‘Umar, who said: “If you come when the imam is bowing, and you put your hands on you knees before the imam stands up, then you have caught up (with that rak‘ah).” Its isnaad is saheeh.
3 -  Zayd ibn Thaabit, who used to say: “Whoever catches up with the rak‘ah before the imam raises his head has indeed caught up with the rak‘ah.” Its isnaad is jayyid. 
See al-Mawsoo’ah al-Fiqhiyyah al-Kuwaitiyyah, 23/133; al-Mughni, 1/298.