Baalzebub was the god of Ekron that King Ahaziah sent to ask. In the Gospels the Pharisees said Yahshua cast out devils by Beelzebub, and in the Testament of Solomon he calls himself the exarch of the demons when Solomon's ring brings him in.
Key verses
2 Kings 1:2: And Ahaziah fell down through a lattice in his upper chamber that was in Samaria, and was sick: and he sent messengers, and said unto them, Go, enquire of Baalzebub the god of Ekron whether I shall recover of this disease.
Matthew 12:24: But when the Pharisees heard it, they said, This fellow doth not cast out devils, but by Beelzebub the prince of the devils.
Matthew 12:27: And if I by Beelzebub cast out devils, by whom do your children cast them out? therefore they shall be your judges.
Mark 3:22: And the scribes which came down from Jerusalem said, He hath Beelzebub, and by the prince of the devils casteth he out devils.
Luke 11:15: But some of them said, He casteth out devils through Beelzebub the chief of the devils.
Testament Of Solomon 2:4: And I questioned him, and said: "Who art thou?" The demon replied: "I am Beelzebub, the exarch of the demons. And all the demons have their chief seats close to me. And I it is who make manifest the apparition of each demon." And he promised to bring to me in bonds all the unclean spirits. And I again glorified the Elohim of heaven and earth, as I do always give thanks to him.
Gospel Of Nicodemus 18:1: THEN the prince of hell took Satan, and with great indignation said to him, O thou prince of destruction, author of Beelzebub's defeat and banishment, the scorn of Elohim's angels and loathed by all righteous persons! What inclined thee to act thus?