Sunan Ibn Majah, Book 36, Hadith 87 (In-Book)

It was narrated that Abu Umamah said: “A man came to the Messenger of Allah at the first pillar and said: ‘O Messenger of Allah, which Jihad is best?’ but he kept quiet. When he saw the second Pillar, he asked again, and he kept quiet. When he stoned ‘Aqabah Pillar, he placed his foot in the stirrup, to ride, and said: ‘Where is the one who was asking?’ (The man) said: ‘Here I am, O Messenger of Allah.’ He said: ‘A word of truth spoken to an unjust ruler.’”

حَدَّثَنَا رَاشِدُ بْنُ سَعِيدٍ الرَّمْلِيُّ، حَدَّثَنَا الْوَلِيدُ بْنُ مُسْلِمٍ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ أَبِي غَالِبٍ، عَنْ أَبِي أُمَامَةَ، قَالَ عَرَضَ لِرَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ رَجُلٌ عِنْدَ الْجَمْرَةِ الأُولَى فَقَالَ يَا رَسُولَ اللَّهِ أَىُّ الْجِهَادِ أَفْضَلُ فَسَكَتَ عَنْهُ فَلَمَّا رَأَى الْجَمْرَةَ الثَّانِيَةَ سَأَلَهُ فَسَكَتَ عَنْهُ فَلَمَّا رَمَى جَمْرَةَ الْعَقَبَةِ وَضَعَ رِجْلَهُ فِي الْغَرْزِ لِيَرْكَبَ قَالَ ‏"‏ أَيْنَ السَّائِلُ ‏"‏ ‏.‏ قَالَ أَنَا يَا رَسُولَ اللَّهِ قَالَ ‏"‏ كَلِمَةُ حَقٍّ عِنْدَ ذِي سُلْطَانٍ جَائِرٍ ‏"‏ ‏.‏

sunnah.com