Imaam Al-Hasan Al-Basree (may Allaah have mercy upon him) said:

A group of Muslims came to Al-Hasan Al-Basree seeking a verdict to rebel against Al-Hajjaaj (a tyrannical and despotic ruler).

So they said, O Aboo Sa`eed, What do you say about fighting this oppressor who has unlawfully spilt blood and unlawfully taken wealth and did this and that?

So Al-Hasan said, I hold that he should not be fought. If this is a punishment from Allaah, then you will not be able to remove it with your swords. If this is a trial from Allaah, then be patient until Allaah’s judgement comes, and He is the best of judges.

So they left Al-Hasan, disagreed with him and rebelled against Al-Hajjaaj; so Al-Hajjaaj killed them all.

Al-Hasan used to say, If the people had patience when they are being tested by their unjust ruler, it will not be long before Allaah will give them a way out. However, they always rush for their swords, so they are left with their swords. By Allaah, not even for a single day did they bring about any good.

Reference: Ibn Sa`d relates in his Tabaqaat Al-Kubraa, 7/163-165