Acts 16:27

27 When the jailer woke up and saw the doors of the prison open, he drew his sword and was going to kill himself, since he thought the prisoners had escaped.

Acts 16:27 Meaning and Commentary

Acts 16:27

And the keeper of the prison awaking out of his sleep
Not so much by the loud voices of Paul and Silas, as by the uncommon motion of the earth, which so shook him, as thoroughly to awake him: and seeing the prison doors open;
which was the first thing in his fright he was looking after, and careful of, and which he might perceive, though it was midnight, and though as yet he had no light: he drew out his sword;
from its scabbard, which was girt about him; for it may be he had slept with his clothes on, and his sword girt to him; or if he had put on his clothes upon awaking, he had also girt himself with his sword: and would have killed himself, supposing that the prisoners had been
fled;
especially Paul and Silas, concerning whom he had received such a strict charge from the magistrates; and he knew that according to law, he must suffer the same punishment that was designed for them; and therefore in fear of the magistrates, and what they would inflict upon him, he was just going to destroy himself.

Acts 16:27 In-Context

25 About midnight Paul and Silas were praying and singing hymns to God, and the prisoners were listening to them.
26 Suddenly there was such a violent earthquake that the foundations of the jail were shaken, and immediately all the doors were opened, and everyone's chains came loose.
27 When the jailer woke up and saw the doors of the prison open, he drew his sword and was going to kill himself, since he thought the prisoners had escaped.
28 But Paul called out in a loud voice, "Don't harm yourself, because all of us are here!"
29 Then the jailer called for lights, rushed in, and fell down trembling before Paul and Silas.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.