From Sahih Muslim (Hadith 4882):
Another version of the tradition differently transmitted begins with the words:" A man came to the Messenger of Allah (ﷺ) and he was sitting on the pulpit.... He said: What do you find if I strike with the sword?" (The rest of the tradition is the same as the previous one)
Reference: Muslim 4882