Here the word "they" refers to some of the thirty men who were with Ebed-Melech.
# the courtyard of the guard
This was an open area attached to the king's palace that was surrounded by buildings and in which they kept prisoners. See how you translated this in [Jeremiah 32:2](../32/01.md).