The Messenger of Allah ﷺ said, "I have been commanded to fight the polytheists," with the same meaning.
حدثنا سليمان بن داود المهري أخبرنا ابن وهب أخبرني يحيى بن أيوب عن حميد الطويل
قال رسول الله ﷺ أمرت أن أقاتل المشركين بمعناه
No references are available.
[sahih] See the previous hadith.