Abu Huraira reported God's messenger as saying, "Hasten to do good deeds before six things happen:
the smoke, the dajjal, the beast of the earth, the rising of the sun in its place of setting, the trial which will affect all mankind[*], and the one which applies more particularly to one of you."
*The Arabic is amr al-'amma which I prefer to explain as in the translation above. It could mean the rule in the hands of the common people.
Muslim transmitted it.