King Herod heard of it, for Jesus' name had become known. Some said, “John the Baptist has been raised from the dead. That is why these miraculous powers are at work in him.” But others said, “He is Elijah.” And others said, “He is a prophet, like one of the prophets of old.” But when Herod heard of it, he said, “John, whom I beheaded, has been raised.” For it was Herod who had sent and seized John and bound him in prison for the sake of Herodias, his brother Philip's wife, because he had married her. For John had been saying to Herod, “It is not lawful for you to have your brother's wife.” And Herodias had a grudge against him and wanted to put him to death. But she could not, for Herod feared John, knowing that he was a righteous and holy man, and he kept him safe. When he heard him, he was greatly perplexed, and yet he heard him gladly.
But an opportunity came when Herod on his birthday gave a banquet for his nobles and military commanders and the leading men of Galilee. For when Herodias's daughter came in and danced, she pleased Herod and his guests. And the king said to the girl, “Ask me for whatever you wish, and I will give it to you.” And he vowed to her, “Whatever you ask me, I will give you, up to half of my kingdom.” And she went out and said to her mother, “For what should I ask?” And she said, “The head of John the Baptist.” And she came in immediately with haste to the king and asked, saying, “I want you to give me at once the head of John the Baptist on a platter.” And the king was exceedingly sorry, but because of his oaths and his guests he did not want to break his word to her. And immediately the king sent an executioner with orders to bring John's head. He went and beheaded him in the prison and brought his head on a platter and gave it to the girl, and the girl gave it to her mother. When his disciples heard of it, they came and took his body and laid it in a tomb.
(Mark 6:14-29 ESV)
Then the whole company of them arose and brought him before Pilate. And they began to accuse him, saying, “We found this man misleading our nation and forbidding us to give tribute to Caesar, and saying that he himself is Christ, a king.” And Pilate asked him, “Are you the King of the Jews?” And he answered him, “You have said so.” Then Pilate said to the chief priests and the crowds, “I find no guilt in this man.” But they were urgent, saying, “He stirs up the people, teaching throughout all Judea, from Galilee even to this place.”
When Pilate heard this, he asked whether the man was a Galilean. And when he learned that he belonged to Herod's jurisdiction, he sent him over to Herod, who was himself in Jerusalem at that time. When Herod saw Jesus, he was very glad, for he had long desired to see him, because he had heard about him, and he was hoping to see some sign done by him. So he questioned him at some length, but he made no answer. The chief priests and the scribes stood by, vehemently accusing him. And Herod with his soldiers treated him with contempt and mocked him. Then, arraying him in splendid clothing, he sent him back to Pilate. And Herod and Pilate became friends with each other that very day, for before this they had been at enmity with each other.
Pilate then called together the chief priests and the rulers and the people, and said to them, “You brought me this man as one who was misleading the people. And after examining him before you, behold, I did not find this man guilty of any of your charges against him. Neither did Herod, for he sent him back to us. Look, nothing deserving death has been done by him. I will therefore punish and release him.”
But they all cried out together, “Away with this man, and release to us Barabbas”—a man who had been thrown into prison for an insurrection started in the city and for murder. Pilate addressed them once more, desiring to release Jesus, but they kept shouting, “Crucify, crucify him!” A third time he said to them, “Why, what evil has he done? I have found in him no guilt deserving death. I will therefore punish and release him.” But they were urgent, demanding with loud cries that he should be crucified. And their voices prevailed. So Pilate decided that their demand should be granted. He released the man who had been thrown into prison for insurrection and murder, for whom they asked, but he delivered Jesus over to their will.
(Luke 23:1-25 ESV)