"In all traditions, the basic relationship among these three figures is that Jesus and the Mahdi are figures of good who work together to combat the Antichrist, al-Dajjal in Arabic."
https://m.florida.universitypressscholarship.com/mobile/view/10.5744/florida/9780813049403.001.0001/upso-9780813049403-chapter-6
"The Mahdi (Arabic: ٱلْمَهْدِيّ, romanized: al-mahdiyy), meaning “the rightly guided one”, is an eschatological Messianic figure who, according to Islamic belief, will appear at the end of times to rid the world of evil and injustice. In Islam, it is said that he will appear alongside Isa and establish the Divine kingdom of Allah."
"26And he that overcometh, and keepeth my works unto the end, to him will I give power over the nations: 27And he shall rule them with a rod of iron; as the vessels of a potter shall they be broken to shivers: even as I received of my Father. 28And I will give him the morning star."
https://biblehub.com/kjv/revelation/2.htm
"5And she brought forth a man child, who was to rule all nations with a rod of iron:"
https://biblehub.com/kjv/revelation/12.htm