At that time David was in the stronghold, and the Philistine garrison was at Bethlehem.
NMVAnd David [beloved] [was] then in an hold, and the Garrison (fortification; military post) of the P’lishtim [Immigrants] [was] then [in] Beit-Lechem [House of Bread].
OJBAnd Dovid was then in the matzadah, and the garrison of the Pelishtim was then in Beit-Lechem.
RVAnd David was then in the hold, and the garrison of the Philistines was then in Beth-lehem.
T4TDavid and his soldiers were in the cave because it was safe there, and another group of Philistia soldiers was occupying Bethlehem.