Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:970ʿAbdullāh b. Muḥammad al-Nufaylī > Zuhayr > al-Ḥasan b. al-Ḥur > al-Qāsim b. Mukhaymirah > Akhadh ʿAlqamah Biyadī Faḥaddathanī > ʿAbdullāh b. Masʿūd Akhadh Biyadih

Alqamah said that Abdullah ibn Mas'ud caught hold of his hand saying that the Messenger of Allah ﷺ caught hold of his (Ibn Mas'ud's) hand and taught him the tashahhud during prayer. He then narrated the (well known ) tradition (of tashahhud). This version adds: When you say this or finish this, then you have completed your prayer. If you want to stand up, then stand, and if you want to remain sitting, then remain sitting.  

أبو داود:٩٧٠حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ النُّفَيْلِيُّ حَدَّثَنَا زُهَيْرٌ حَدَّثَنَا الْحَسَنُ بْنُ الْحُرِّ عَنِ الْقَاسِمِ بْنِ مُخَيْمِرَةَ قَالَ أَخَذَ عَلْقَمَةُ بِيَدِي فَحَدَّثَنِي أَنَّ عَبْدَ اللَّهِ بْنَ مَسْعُودٍ أَخَذَ بِيَدِهِ

وَأَنَّ رَسُولَ اللَّهِ ﷺ أَخَذَ بِيَدِ عَبْدِ اللَّهِ فَعَلَّمَهُ التَّشَهُّدَ فِي الصَّلاَةِ فَذَكَرَ مِثْلَ دُعَاءِ حَدِيثِ الأَعْمَشِ إِذَا قُلْتَ هَذَا أَوْ قَضَيْتَ هَذَا فَقَدْ قَضَيْتَ صَلاَتَكَ إِنْ شِئْتَ أَنْ تَقُومَ فَقُمْ وَإِنْ شِئْتَ أَنْ تَقْعُدَ فَاقْعُدْ