[Machine] We saw the Messenger of Allah ﷺ while he was performing the Dhuhr or Asr prayer. He stood up and we said, "Subhanallah (Glory be to Allah)." He replied, "Subhanallah" and gestured with his hand, meaning get up. So we stood up. After he finished his prayer, he performed two prostrations and then said, "When one of you mentions Allah, let him sit before concluding the prayer, and when he concludes the prayer, let him stay seated."
أَمَّنَا رَسُولُ اللهِ ﷺ فِي الظُّهْرِ أَوِ الْعَصْرِ فَقَامَ فَقُلْنَا سُبْحَانَ اللهِ فَقَالَ سُبْحَانَ اللهِ وَأَشَارَ بِيَدِهِ يَعْنِي قُومُوا فَقُمْنَا فَلَمَّا فَرَغَ مِنْ صَلَاتِهِ سَجَدَ سَجْدَتَيْنِ ثُمَّ قَالَ إِذَا ذَكَرَ أَحَدُكُمْ قَبْلَ أَنْ يَسْتَتِمَّ قَائِمًا فَلْيَجْلِسْ وَإِذَا اسْتَتَمَّ قَائِمًا فَلَا يَجْلِسْ