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.
muslim:402dYaḥyá b. Yaḥyá > Abū Muʿāwiyah > al-Aʿmash > Shaqīq > ʿAbdullāh b. Masʿūd

We were sitting with the Apostle ﷺ in prayer, and the rest of the hadith is the same as narrated by Mansur He (also said): After (reciting tashahud) he may choose any prayer.  

مسلم:٤٠٢dحَدَّثَنَا يَحْيَى بْنُ يَحْيَى أَخْبَرَنَا أَبُو مُعَاوِيَةَ عَنِ الأَعْمَشِ عَنْ شَقِيقٍ عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ قَالَ

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