ENOfficial
Abu Huraira reported God’s Messenger as saying, “When the time for prayer comes, only the prescribed prayer is to be said.” Muslim transmitted it.
Source: sunnah.com
Other translations
Arabic
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا أُقِيمَتِ الصَّلَاةُ فَلَا صَلَاةَ إِلَّا الْمَكْتُوبَة» . رَوَاهُ مُسلم
sunnah.com