Sunan Ibn Majah, Book 36, Hadith 86 (Ibn Majah 4014)

It was narrated from Abu Sa’eed Al-Khudri that the Messenger of Allah (ﷺ) said:

“The best of jihad is a just word spoken to an unjust ruler.”