When you get up to pray, say the takbir, exalting Allah; then recite the Qur’an as much as it is convenient for you. The version adds: When you sit in the middle of the prayer, do it completely(so that you are at rest) and spread your left thigh; then recite the tashahhud. Then if you get up (again), do in a similar way until you finish your prayer.
عَنِ النَّبِيِّ ﷺ بِهَذِهِ الْقِصَّةِ قَالَ إِذَا أَنْتَ قُمْتَ فِي صَلاَتِكَ فَكَبِّرِ اللَّهَ تَعَالَى ثُمَّ اقْرَأْ مَا تَيَسَّرَ عَلَيْكَ مِنَ الْقُرْآنِ وَقَالَ فِيهِ فَإِذَا جَلَسْتَ فِي وَسَطِ الصَّلاَةِ فَاطْمَئِنَّ وَافْتَرِشْ فَخِذَكَ الْيُسْرَى ثُمَّ تَشَهَّدْ ثُمَّ إِذَا قُمْتَ فَمِثْلَ ذَلِكَ حَتَّى تَفْرُغَ مِنْ صَلاَتِكَ