It is narrated from Sayyiduna Amr bin al-As (may Allah be pleased with him): "He led the people in prayer and stood up instead of sitting for the (middle) tashahhud, whereupon the people alerted him by saying aloud 'Subhan Allah' (Allah is free of all imperfection), but he continued his prayer in that state. Then, when he had completed his prayer, he made the two prostrations of forgetfulness and said: O people, what you wanted was not hidden from me, but nothing prevented me from sitting (again for the tashahhud) except that what I did is the Sunnah."