Hazrat Mahdi (as) is among us, one from the Ahl al-Bayt… We are such a household that, for us, Allah preferred the Hereafter over this world. After me, my Ahl al-Bayt will surely be subjected to trouble, abduction and banishment. After me, my Ahl al-Bayt will meet trouble and torment, and be subjected to expulsion. (Al-Muttaqi al-Hindi, al-Burhan fi Alamat al-Mahdi Akhir az-Zaman, p. 14)
The following hadith of the Prophet Muhammad (saas) also refers to such a situation, "During the oath of allegiance, Hazrat Mahdi (as) will announce he had been subjected to many injustices and troubles”:
… Mahdi (as) will emerge at a time when, one after another, disasters befall people and people lose hope of his appearance. He perform two rakaats of prayer (salat). When he returns from the prayer he says: “People! The Community of Muhammad and especially his Ahl al-Bayt have undergone many troubles and we have undergone suffering and injustice…” (Al-Muttaqi al-Hindi, al-Burhan fi Alamat al-Mahdi Akhir az-Zaman, p. 55)
The following hadith reveals that Hazrat Mahdi (as), who will spiritually capture Istanbul, and his follower will suffer various troubles before that spiritual conquest, and that these will be eliminated afterward.
Allah will capture Constantinople [Istanbul] through his beloved friends [Hazrat Mahdi (as)]. ... He will lift sickness and sorrow from them. (Al-Barzanji, Al-Isha'ah li-ashrat al-sa'ah, p. 181)
Allah has revealed in the Qur’an that many prophets were rejected by their societies, falsely accused of magic and sorcery and subjected to many attacks and much oppression. The messengers remained steadfast in the face of all these attacks and responded to them in the finest manner:
Messengers before you were also denied... (Surat al-An‘am, 34)
... We will be steadfast however much you harm us.... (Surah Ibrahim, 12)
But then they turned away from him and said, ‘He is an instructed madman!’ (Surat ad-Dukhan, 14)
Equally, no Messenger came to those before them without their saying, “A magician or a madman!” (Surat adh-Dhariyat, 52)
But he turned away with his forces, saying, ‘A magician or a madman!’ (Surat adh-Dhariyat, 39)
He (Pharaoh) said, ‘If you take any god other than me, I will certainly throw you into prison.’ (Surat ash-Shu‘ara’, 29)
You who have iman! do not be like those who abused Moses... (Surat al-Ahzab, 69)
They said, ‘Build a pyre for him and fling him into the blaze!’ (Surat as-Saffat, 97)
Then, after they had seen the Signs, they thought that they should still imprison him for a time. (Surah Yusuf, 35)
... Those who are unbelievers all but strike you down with their evil looks when they hear the Reminder and say, ‘He is quite mad.’ (Surat al-Qalam, 51)