If a person forgetfully stands up for the fifth unit of a four-unit Fard prayer, and they perform the prostration (Sujud) of the fifth unit without having sat for the final sitting, their Fard prayer is invalidated.

Prostration of Forgetfulness: Specialized & Congregational Cases