A prophet who was relative with jesus and a little older that martyred brutally.

Kaf Ha Ya Ain Suad.[1], A mention of the mercy of your Lord to His servant Zakariya.[2], When he called upon his Lord in a low voice,[3] He said, ‘My Lord! Indeed my bones have become feeble, and my head has turned white with age, yet never have I, my Lord, been disappointed in supplicating You![4] And surely I fear my cousins after me, and my wife is barren, therefore grant me from Thyself an heir,[5], who may inherit from me and inherit from the House of Jacob, and make him, my Lord, pleasing [to You]!’[6] ‘O Zechariah! Indeed We give you the good news of a son, whose name is ‘‘John.’’ Never before have We made anyone his namesake.’[7], He said, ‘My Lord! How shall I have a son, when my wife is barren, and I am already advanced in age?’[8] He said: So shall it be, your Lord says: It is easy to Me, and indeed I created you before, when you were nothing.[9], He said, ‘My Lord! Appoint a sign for me.’ He said, ‘Your sign is that you will not speak to the people for three complete nights.’[10]
Holy quran: 19-Maryam (verse 1-10)

Zachariah (PBUH) was old and his wife was barren and infertile, making John’s birth a miracle from God. John possessed a gift from God and was under His favor. God taught him knowledge and wisdom in childhood and chose him. He named him, and no one had ever borne the same name before him. However, when the news of the child arriving reaches Zachariah (PBUH), he is astonished (because of his age and barrenness) and therefore God tells him that this is easy for him, just as He had created him before. God provides a sign for Zachariah (AS) – that he cannot speak to anyone for three days. John was very kind and compassionate, and towards his parents, he was exceedingly polite, loving, and charitable. (According to some accounts, like Jesus (PBUH), he did not marry.) God sends John three greetings and blessings:

  1. The day he borned
  2. The day he died
  3. The day he will born and rise again
So he went forth to his people from his place of worship, then he made known to them that they should glorify (Allah) morning and evening. [11] ‘O John!’ [We said,] ‘Hold on with power to the Book!’ And We gave him judgement while still a child,[12] And tenderness from Us and purity, and he was one who guarded (against evil),[13] And dutiful toward his parents. And he was not arrogant, rebellious.[14] And peace on him on the day he was born, and on the day he dies, and on the day he is raised to life[15]
Holy quran: 19-Maryam (verse 11-15)
John (yahya)

John and Zachariah (PBUH) were contemporaries. Before Jesus (PBUH), they preached the religion and faith of Moses (PBUH). Then, they became heralds and confirmed the message of Jesus (PBUH). They continued to promote the religion and invite people to repentance and piety until news arrived of the King’s lustful marriage (Herod, the ruler of Jerusalem, a descendant of Caesar Augustus) with his sister (Salome). (According to one account) This act was contrary to religious teachings. Therefore, John protested and offered counsel until Salome guided herself to Herod and declared that her condition for marrying Herod was to cut off the head of John. As a result, Herod ordered the execution of John’s head, which was sent to Salome as a gift. Thus, John (PBUH) is martyred in the pursuit of reviving religion, promoting good deeds, and forbidding evil. His martyrdom can also be likened to the martyrdom of Imam Hussein (PBUH) and his companions, because he rose up and their blessed heads were severed in the cause of reviving religion, promoting good deeds, and forbidding evil.”