The Messenger of Allah ﷺ said, "None of you should pray in a single garment with nothing of it covering his shoulders."
حدثنا مسدد حدثنا سفيان عن أبي الزناد عن الأعرج
قال رسول الله ﷺ لا يصل أحدكم في الثوب الواحد ليس على منكبيه منه شيء
Muslim narrated it, in the Book of Prayer, Chapter on Praying in a Single Garment and How to Wear It, hadith no. 516, from the hadith of Sufyan bin Uyayna with this same wording.