It has been narrated through a different chain of transmitters on the authority of Sufyan…

Sahih Muslim Book 33 Hadith 223

Sahih Muslim #1907 b

The Book on Government 33:223

It has been narrated through a different chain of transmitters on the authority of Sufyan who said that he heard 'Umar b. al-Khattab relate (this tradition) from the Prophet (ﷺ) while he was delivering a sermon from the pulpit.

Chapter: The words of the prophets saws: "Deeds are but with intentions" which includes fighting and other deeds

Grade: Sahih