Sounds like a garbled tale from the New Testament doesn't it.
. Muslims believe that a Messiah-type figure (Imam Mahdi, or the Mahdi) will appear (or re-appear) at a difficult period of history to restore the faith and ensure the final victory of Islam.
http://www.adishakti.org/prophecies/prophecy_18.htm