From Sahih Muslim (Hadith 900):
Abdullah b. Mas'ud reported: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
Reference: Muslim 900