Hadithcore
Sahih Muslim, 402 d
sahih

Abdullah b. Mas'ud reported:

We were sitting with the Messenger (ﷺ) 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.

حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، أَخْبَرَنَا أَبُو مُعَاوِيَةَ، عَنِ الأَعْمَشِ، عَنْ شَقِيقٍ، عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ، قَالَ كُنَّا إِذَا جَلَسْنَا مَعَ النَّبِيِّ صلى الله عليه وسلم فِي الصَّلاَةِ ‏.‏ بِمِثْلِ حَدِيثِ مَنْصُورٍ وَقَالَ ‏

‏ ثُمَّ يَتَخَيَّرُ بَعْدُ مِنَ الدُّعَاءِ ‏

‏ ‏.‏

References2 variants
In-Book Reference
Book 4, Hadith 62
USC-MSA web (English) reference
Book 4, Hadith 796 (deprecated numbering scheme)