Ruling when the Ma'mum forgets to complete what they have missed

Q 8: I joined the congregational Salah (Prayer) in the last two Rak‘ahs (units of Prayer). When the Imam (the one who leads congregational Prayer) said Taslim (salutation of peace ending the Prayer), I said it after him, but I then remembered the two other Rak‘ahs I missed. So I got up but I offered only one Rak‘ah thinking that it was two. When I sat down to recite Tashahhud (a recitation in the sitting position in the second/ last unit of Prayer), I remembered, so I offered the second. What is the ruling on this Salah? (Part No. 6; Page No. 6

A: You have to perform only Sujud-ul-Sahw (Prostration of Forgetfulness) as long as you have remembered the missing parts of Salah and made up for them. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.