ANSWER:
What you did was not correct. You should not have broken the salah.
When you realized that you got up for the third rakah you should have immediately gone back to sitting position and finished your prayer and made sujood as sahu.
ANSWER:
What you did was not correct. You should not have broken the salah.
When you realized that you got up for the third rakah you should have immediately gone back to sitting position and finished your prayer and made sujood as sahu.