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
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
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.”
The commander went to Paul and asked, “Tell me, are you a Roman citizen?” “Yes, I am,” he answered.
Then the commander said, “I had to pay a lot of money for my citizenship.” “But I was born a citizen,” Paul replied.
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
The commander wanted to find out exactly why Paul was being accused by the Jews. So the next day he released him and ordered the chief priests and all the members of the Sanhedrin to assemble. Then he brought Paul and had him stand before them.
References for Acts 22:30