Standing to complete a missed rak’ah before the imaam has completely finished makingthe second tasleem (i.e closing the prayer by saying ‘As-salaamu ‘alaikum wa rahmatullahi to the right and left). It is reported in Saheeh Muslim that the Messenger of Allah (sallallahu ‘alaihi wa sallam) said: Do not precede me in the rukoo’ (bowing) not in the sujood (prostration) nor in going out of the prayer (al-insiraaf). The scholars have said that the meaning of al-insiraaf is at-tasleem and it is named such because the praying person may leave afterwards and he leaves only after the second tasleem. The one who precedes the imaam should stay in his place until the imaam has completed his salaah, then he should stand and complete whatever he missed, and Allah knows best.