The Messenger of Allah ﷺ stood up for prayer, and we stood with him. During the prayer an Arabi said, "Allah, have mercy on me and on Muhammad, and do not have mercy on anyone else along with us."When the Messenger of Allah ﷺ gave the closing salam, he said to the Arabi, "You have restricted something Wasi," meaning the mercy of Allah .
حدثنا أحمد بن صالح حدثنا عبد الله بن وهب أخبرني يونس عن ابن شهاب عن أبي سلمة بن عبد الرحمن أن
قام رسول الله ﷺ إلى الصلاة وقمنا معه فقال أعرابي في الصلاة اللهم ارحمني ومحمدا ولا ترحم معنا أحدا فلما سلم رسول الله ﷺ قال للأعرابي لقد تحجرت واسعا يريد رحمة الله عز وجل
[Isnad is sahih]. Nasai narrated it in the chapter on Sahw, the section on speaking during prayer, hadith no. 1217, from the hadith of Ibn Shihab with this wording. Bukhari also narrated it, hadith no. 6010, from his hadith with similar wording. The hadith has other routes, see: 380.