24 the commander ordered that Paul be taken into the barracks. He directed that he be flogged and interrogated in order to find out why the people were shouting at him like this.

References for Acts 22:24

      25 As they stretched him out to flog him, Paul said to the centurion standing there, “Is it legal for you to flog a Roman citizen who hasn’t even been found guilty?”

      References for Acts 22:25

      26 When the centurion heard this, he went to the commander and reported it. “What are you going to do?” he asked. “This man is a Roman citizen.”
      27 The commander went to Paul and asked, “Tell me, are you a Roman citizen?” “Yes, I am,” he answered.
      28 Then the commander said, “I had to pay a lot of money for my citizenship.” “But I was born a citizen,” Paul replied.
      29 Those who were about to interrogate him withdrew immediately. The commander himself was alarmed when he realized that he had put Paul, a Roman citizen, in chains.

      References for Acts 22:29