Sunan Ibn Majah, Book 24, Hadith 32 (Ibn Majah 2786)

It was narrated that Abu ‘Uqbah, who was the freed slave of some Persian people, said:

“I was present with the Prophet (ﷺ) on the Day of Uhud. I struck a man from among the idolaters and said: ‘Take that! And I am a Persian slave!’ News of that reached the Prophet (ﷺ) and he said: ‘Why did you not say: “Take that! And I am an Ansari slave!?”