The Messenger of Allah ﷺ said, "Once the prayer has been called to begin, no prayer is to be performed except the obligatory one."
حدثنا أحمد بن منيع حدثنا روح بن عبادة حدثنا زكريا بن إسحق حدثنا عمرو بن دينار قال سمعت عطاء بن يسار
قال رسول الله ﷺ إذا أقيمت الصلاة فلا صلاة إلا المكتوبة
Muslim also narrated it in the Book of the Traveler's Prayer, chapter on the dislike of beginning a voluntary prayer after the muezzin has begun the call, hadith no. 710, from the hadith of Rawh bin Ubada through this same route.On this subject there are also narrations from Ibn Buhayna [Bukhari, no. 663, and Muslim, no. 711], Abdullah bin Amr [Bazzar (Kashf), 1/245, no. 503], Abdullah bin Sarjas [Muslim, no. 712], Ibn Abbas [Ibn Khuzayma, no. 1124, Hakim in al-Mustadrak, 1/307, and Bayhaqi, 2/482], and Anas [Ibn Khuzayma, no. 1126].Ahmad narrated it, 2/352, from the hadith of Abbas bin Abbas, from Abu Tamim Zuhri, from Abu Hurairah, through this same route.