Hazrat Mahdi (as) will struggle against the hypocrites of the end times, certain scholars of religious law and the dajjal of the end times
1. How the Hadith Describe Hazrat Mahdi’s (as) Struggle against the Hypocrites:
O people, Almighty Allah has certainly FORBIDDEN YOU THE CRUEL, THE HYPOCRITES AND THEIR FOLLOWERS and has made Hazrat Mahdi (as), the most auspicious of the community of Muhammad … your commander, so join him.
(Al-Qawl al-Mukhtasar, fi `Alamat al-Mahdi al-Muntazar, Ahmad Ibn Hajar al-Makki, p. 31)
... From Abu Bashir: Imam Jaffar Sadiq (as) said this about the verse. “You would know them by their mark” (Surah Muhammad, 30): ALLAH KNOWS THEM, BECAUSE THIS VERSE HAS BEEN REVEALED CONCERNING THE QAIM [HAZRAT MAHDI (AS)]. HAZRAT MAHDI (AS) WILL KNOW THEM (THE HYPOCRITES) FROM THEIR FACES AND WITH HIS COMMUNITY, HE WILL (SPIRITUALLY) DESTROY THEM.
(Sheikh Muhammad bin Ibrahim Nomani, al-Ghaybah al-Nomani, p. 283)
Asbag Ibn Nabata says: Ali, Commander of the faithful, said: "...No more you than kohl on the eye or salt in food will remain. And I shall give you an example: A man has a quantity of wheat. He cleans it and stores it in his house. When he returns to it a long time later, he sees it is full of weevils. He cleans it again and again puts it in his home. When he comes back to it after another long time, he sees it is again infested with weevils. He repeats the same processes. WHAT EVENTUALLY REMAINS IS A VERY LITTLE HEALTHY WHEAT THAT WEEVILS CANNOT HARM. You are like that. At the end, a small group of you will be left that corruption cannot harm.” (Ahmad Ibn Muhammad Ibn Said also transmits the same hadith.)
(Sheikh Muhammad bin Ibrahim Nomani, al-Ghaybah al-Nomani, p. 246)
From Nahj al-Balaga: The lord of believers (saas) said: "When he [Hazrat Mahdi (as)] hides away from people, NOT EVEN TRACKERS WILL BE ABLE TO SEE ANY TRACE OF HIM…
Kitab al-Ghaybat, [Bihar al-Anwar, Vol. 51], Ansariyan Publications, collected by: Muhammad Baqr al-Majlis, Iran-Qum, 2003, p. 186.
…at the end of time two currents of irreligion will gain strength: One of them: Under the veil of duplicity, a fearsome individual named the Sufyan will deny the messengership of Muhammad (pbuh), and coming to lead the dissemblers, will try to destroy the Islamic Shari‘a [way of belief and practice]. To oppose him, a luminous individual called MUHAMMAD MAHDI OF THE FAMILY OF THE PROPHET will come to lead the people of sainthood and perfection, who are bound to the luminous chain of the Family of the Prophet, and HE WILL KILL THE CURRENT OF DISSEMBLERS, which will be the collective personality of the Sufyan, and scatter it.
THE SIXTH SIGN (Letters / Fifteenth Letter - p.79)
THIS WILL CONTINUE VICTORIOUSLY DESPITE THOSE WHO DEPART. HIS OPPONENTS AND THOSE WHO LEAVE HIM WILL DO HIM NO HARM...
Hazrat Jabir (ra) (Great Portents of Doomsday, 487/6)
Doomsday will not take place until one from my community rules over everyone. THEY WILL TAKE NO NOTICE OF BEING ABANDONED BY THOSE WHO LEAVE THEM nor of those who help them.
At Allah’s command, A COMMUNITY FROM MY UMMAH WILL CONSTANTLY AND HEROICALLY STRIVE AGAINST THE FOE, AND THEIR OPPONENTS WILL DO THEM NO HARM. This will continue until Doomsday.
(Portents of Doomsday, 286)
2. Hazrat Mahdi’s (as) Struggle against Certain Scholars of Religious Law in the End Times Is Described as Follows in the Hadith:
"... WHEN THE IMAM MAHDI (AS) APPEARS, ONLY SCHOLARS OF RELIGIOUS LAW WILL BE INIMICAL TOWARD HIM [HAZRAT MAHDI (AS)]. HIS [HAZRAT MAHDI'S (AS)] SWORD IS HIS BROTHERS. If he did not have a sword in his hand - IN OTHER WORDS, IF HE HAD NO BROTHERS - THE SCHOLARS OF CANON LAW WOULD ISSUE HIS DEATH WARRANT. Because Almighty Allah will purify him [Hazrat Mahdi (as)] with His munificence and sword (HIS BROTHERS), and they will attach credence to him [Hazrat Mahdi (as)]. THOSE WHO DO NOT BELIEVE IN HIS PRONOUNCEMENTS WILL BE OBLIGED TO ACCEPT IT AND WILL CONCEAL THE CONTRARY OPINION."
(Ramuz Al-Hadith. pp. 56, 73)
In his [Hazrat Mahdi’s (as)] time, the religion will be completely purged of all subsequent accretions and restored to its original form. HE WILL OPPOSE THE ULAMA OF THE SCHOOLS IN MANY OF HIS PRONOUNCEMENTS. FOR THAT REASON, THEY WILL KEEP AWAY FROM HIM [HAZRAT MAHDI (AS)]. According to their presumptions, they will accept that Allah truly did not leave a renovator (mujdahid) after the imams......
In his “Al-Futuhat al-Makkiyya" Muhyiddin Ibn al-‘Arabi states: ...Hazrat Mahdi (as) will restore the religion to exactly as it was in the time of the Prophet (saas). He will eliminate the schools from the world. No school will be left apart from the true, pure faith. HIS ENEMIES WILL BE THOSE WHO IMMITATE THE SCHOLARS OF IJTIHAD [scholars who make a legal decision by independent interpretation of the Islamic sources]. That is because THEY WILL BE DISPLEASED when they see Hazrat Mahdi (as) pronounce in opposition to the imams of the schools, BUT NEITHER WILL THEY OPPOSE HIM... HIS [HAZRAT MAHDI'S (AS)] SWORD IS HIS BROTHERS. Since they fear his sword they will submit to his rule, willingly or unwillingly. HIS DECLARED ENEMIES WILL BE THE SCHOLARS OF RELIGIOUS LAW. BECAUSE THEY WILL HAVE NO MORE ESTEEM IN THE PUBLIC EYE. AND EVEN THEIR KNOWLEDGE ON THE SUBJECT OF AHQAM WILL DECLINE." With his [Hazrat Mahdi's (as)] coming, he will overcome scholars' disputes regarding their pronouncements... IF HE HAD NO SWORD IN HIS HAND THE SCHOLARS OF RELIGIOUS LAW WOULD ISSUE HIS [HAZRAT MAHDI'S (AS)] DEATH WARRANT. Because Almighty Allah will purify him [Hazrat Mahdi (as)] with His munificence and his sword, AND THEY WILL OBEY HIM [HAZRAT Mahdi (as)]. Because they will have no more esteem in the public eye and even their knowledge of dogma will decline. With the coming of Hazrat Mahdi (as), disputes over pronunciations among scholars will be overcome. They will both fear him [Hazrat Mahdi (as)] and also have expectations of him. THEY WILL HATE HIM [HAZRAT MAHDI (AS)] IN THEIR HEARTS, BUT THEY WILL STILL, WILLINGLY OR UNWILLINGLY, ACCEPT HIS PRONOUNCEMENTS....
(Muhammad Ibn Rasul al Husayn al-Barzanji, Portents of Doomsday, 186-187)
Imam Rabbani says this on the subject: When Hazrat Mahdi (as) whose coming is promised wishes to raise the value of the religion and renovate the Sunnah, those who are used to act along with the people of innovation [ahl al-bidah] and who imagine that things not in fact lying at the essence of the religion are in fact the commandments of the faith will say with amazement: "THIS PERSON [HAZRAT MAHDI (AS)] WANTS TO DO AWAY WITH OUR RELIGION AND DESTROY OUR SHARI'A [WAY OF BELIEF AND PRACTICE]."
(Letters of Rabbani, 1/535)
3. Hazrat Mahdi’s (as) Struggle against the System of the Dajjal in the End Times Is Described as Follows in the Hadith:
THE DAJJAL WOULD COME FORTH AND A PERSON FROM AMONGST THE BELIEVERS WOULD GO TOWARDS HIM AND THE ARMED MEN OF THE DAJJAL WOULD MEET HIM. …
(Sahih Muslim, Book 41, 7019)
When the believer [Hazrat Mahdi (as)] would see the Dajjal, he would say: “O people! He is the Dajjal about whom Allah's Messenger (saas) has informed (us).” The Dajjal would then issue commands concerning him and utter (these words): “Catch hold of him and wound him!” He would be struck even on his back and on his stomach. … He [the Dajjal] would catch hold of him by his hand and feet and throw him (into the air) and the people would think as if he had been thrown in the Hell-Fire whereas he would be thrown in Paradise.
(Sahih Muslim, Book 41, 7019)
A SECTION OF MY COMMUNITY WILL CONTINUE TO FIGHT FOR THE RIGHT AND OVERCOME THEIR OPPONENTS TILL THE LAST OF THEM FIGHTS WITH [WAGES INTELLECTUAL STRUGGLE AGAINST] THE MESSIAH DAJJAL.
(Sunan Abu-Dawud, Book 14, 2478)
... We are such a people of the house that Allah has preferred the Hereafter over this world for us. It is certain that after me my People of the House will suffer scourges, abductions and exile. After me, my People of the House will suffer tribulations and troubles, and will receive heavy blows.
(Al-Burhan fi Alamat al-Mahdi Akhir al-zaman, p.14)
... Hazrat Mahdi (as) will appear with the banner of the Messenger of Allah (saas), at a time when scourge upon scourge rain down on people and when all hope of his appearance has been abandoned. He will observe two rak‘ahs of prayer. And when he returns from the prayer he will say: “O people! The community of Muhammad and his People of the House in particular has suffered many scourges, and we have suffered distress and injustice.”
(Al-Burhan fi Alamat al-Mahdi Akhir al-zaman, p. 55)
A GROUP FROM MY COMMUNITY will fight [wage an intellectual struggle] for the truth and overcome their opponents until the Last Day [until the fight with the Dajjal].
(Al-Burhan fi Alamat al-Mahdi Akhir al-zaman, p. 80)