It was narrated from ‘Ali bin Abi Talib ؓ that when the Messenger of Allah ﷺ stood up to offer the prescribed prayer, he would say Allahu Akbar and raise his hands to shoulder height; he did the same when he finished reciting and wanted to bow, and he did it when he raised his head from bowing. He did not raise his hands when sitting in any part of his prayer, but when he stood up following the two prostrations, he raised his hands in the same manner and said Allahu Akbar. (Using translation from Aḥmad 717)
كَانَ رَسُولُ اللهِ ﷺ إِذَا قَامَ إِلَى الصَّلَاةِ الْمَكْتُوبَةِ كَبَّرَ وَرَفَعَ يَدَيْهِ حَذْوَ مَنْكِبَيْهِ وَيَصْنَعُهُ إِذَا قَضَى قِرَاءَتَهُ وَأَرَادَ أَنْ يَرْكَعَ وَإِذَا رَفَعَ رَأْسَهُ مِنَ الرُّكُوعِ فَعَلَ مِثْلَ ذَلِكَ وَلَا يَرْفَعُ يَدَيْهِ فِي شَيْءٍ مِنْ صَلَاتِهِ وَهُوَ قَاعِدٌ وَإِذَا قَامَ مِنَ السَّجْدَتَيْنِ كَبَّرَ وَرَفَعَ يَدَيْهِ كَذَلِكَ