The religious teachers and the Pharisees were observing Jesus closely to see if he would heal on the Sabbath. They wanted to find something to accuse him of.
I've heard many people gossiping: “He's the one who says, ‘Terror is everywhere!’ He has to be reported! Report what he's doing!” All my good friends are waiting for me to slip up. “Maybe he'll make a mistake so we can defeat him and get our revenge on him,” they say.
Some of those there were watching Jesus to see if he would heal the man on the Sabbath, because they were looking for a reason to accuse him of breaking the law.
However, the synagogue leader was upset that Jesus had healed on the Sabbath. He said to the crowd, “There are six days for work. Come and be healed on those days, not on the Sabbath.”
Watching for an opportunity they sent spies who pretended to be sincere. They tried to catch Jesus out in something he said so they could hand him over to the power and authority of the governor.
Some of the Pharisees said, “The man who did this can't be from God because he doesn't keep the Sabbath.” But others wondered, “How could a sinner do such miracles?” So they were divided in their opinion.