The Messenger of Allah (ﷺ) stood up during the prayer when he should have sat, so he prostrated twice while sitting, before the taslim.
Sunan an-Nasa'i Book 13, Hadith 45
← Previous Hadith
"The Messenger of Allah (ﷺ) led us in praying two rak'ahs, then he stood up and did not sit, and the people stood up with him. When he finished the prayer, and we were waiting for him to say the taslim, he said the takbir and prostrated twice while sitting, before the taslim. Then he said the taslim."
Sunan an-Nasa'i Book 13, Hadith 44 Next Hadith → "Abu Hurairah said: 'The Prophet (ﷺ) led us in one of the nighttime prayers.'" He said: "Abu Hurairah said: 'But I forgot (which one).' He said: 'He led us in praying two rak'ahs, then he said the taslim and went to a piece of wood that was lying in the masjid and leaned his hand on it as if he was angry. Those who were in a hurry left the masjid, and said: "The prayer has been shortened." Among the people were Abu Bakr and 'Umar but they hesitated to ask him for they revere him. Also among the people was a man with long hands who was known as Dhul-Yadain. He said: O Messenger of Allah (ﷺ), did you forget or has the prayer been shortened? He said: I did not forget and the prayer has not been shortened. He said: Is it as Dhul-Yadain says? They said: yes. So he came and prayed what he had missed, then he said the salam, then he said the takbir and prostrated as usual or longer than that. Then he raised his head and said the takbir, and prostrated as usual or longer than that. Then he raised his head and said the takbir.'"
Sunan an-Nasa'i Book 13, Hadith 46
Sunan an-Nasa'i Book 13, Hadith 44 Next Hadith → "Abu Hurairah said: 'The Prophet (ﷺ) led us in one of the nighttime prayers.'" He said: "Abu Hurairah said: 'But I forgot (which one).' He said: 'He led us in praying two rak'ahs, then he said the taslim and went to a piece of wood that was lying in the masjid and leaned his hand on it as if he was angry. Those who were in a hurry left the masjid, and said: "The prayer has been shortened." Among the people were Abu Bakr and 'Umar but they hesitated to ask him for they revere him. Also among the people was a man with long hands who was known as Dhul-Yadain. He said: O Messenger of Allah (ﷺ), did you forget or has the prayer been shortened? He said: I did not forget and the prayer has not been shortened. He said: Is it as Dhul-Yadain says? They said: yes. So he came and prayed what he had missed, then he said the salam, then he said the takbir and prostrated as usual or longer than that. Then he raised his head and said the takbir, and prostrated as usual or longer than that. Then he raised his head and said the takbir.'"
Sunan an-Nasa'i Book 13, Hadith 46