Delivering after the first Tashahhud for one who intended four

Question
If someone intended to pray four units and forgot, and he delivered the prayer after the first Tashahhud in the second unit, what are the consequences?
Answer
I say, and with God's success: If he is praying a voluntary prayer, he can perform two additional rak'ahs if he wishes with a new takbir. If he is praying a mandatory prayer, it does not harm him to greet after the first two rak'ahs as long as he does not engage in anything that contradicts the prayer, such as speaking or eating or otherwise. He then stands for the third rak'ah and completes his prayer without a takbir and prostrates for forgetfulness at the end of the prayer. And God knows best.
imam icon

Send your question to the smart assistant

If the previous answers are not appropriate, please send your question to the Mufti via