All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Whoever catches one complete rakʿah within the prayer's time has caught the prayer as an on-time (adāʾ) prayer. The rakʿah is complete when the worshipper raises his head from the second prostration (sajdah), even if he has not yet reached the degree of standing in which the recitation is valid.
It is stated in Nihāyat al-Muḥtāj (Vol.1/p.378): "What is meant by the rakʿah is the completion of all of it, with its two prostrations." End quote.
And in Ḥāshiyat al-Shabrāmallisī: "(His saying: 'a rakʿah') means that he raises his head from the second prostration, even if he has not reached the degree in which the recitation is valid." And Allah Almighty knows best.
________________________________________
Note on terminology: Adāʾ refers to performing the prayer within its prescribed time, as opposed to qaḍāʾ (making it up after its time has ended).