The origin of the belief in Imam Mahdi (as)