Q: A person doubts whether he is in the third or fourth rakaat. He assumes he is in the third and completes his salaah with sajdah sahw. Then someone tells him that he read five rakaats. Must he repeat his salaah?
A: If he is clear of what he did he does not need to accept the correction.
And Allah Ta’ala (الله تعالى) knows best.