KJV: The chief captain commanded him to be brought into the castle, and bade that he should be examined by scourging; that he might know wherefore they cried so against him.
NASB: the commander ordered him to be brought into the barracks, stating that he should be examined by scourging so that he might find out the reason why they were shouting against him that way.
KJV: Then straightway they departed from him which should have examined him: and the chief captain also was afraid, after he knew that he was a Roman, and because he had bound him.
NASB: Therefore those who were about to examine him immediately let go of him; and the commander also was afraid when he found out that he was a Roman, and because he had put him in chains.