Abd al-Rahman bin Shimasah (may Allah have mercy on him) narrates: Sayyiduna Uqbah bin Amir al-Juhani (may Allah be pleased with him) led us in prayer. He was supposed to sit, but he stood up. The people said: 'Subhan Allah', 'Subhan Allah' (Glory be to Allah)! But he did not sit and remained standing. When he was at the end of the prayer, he performed the two prostrations of forgetfulness while sitting. When he gave the salam, he said: "I heard you just now saying Subhan Allah so that I would sit, but the Sunnah is what I did."
This has been narrated from a large number of the Companions, and what we have mentioned is sufficient. Wa billahi al-tawfiq (and success is only through Allah).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3852