query: When did the story of David and Goliath take place?
passage: Goliath
The Books of Samuel, together with the books of Joshua, Judges and Kings, make up a unified history of Israel which biblical scholars call the Deuteronomistic history. The first edition of the history was probably written at the court of Judah's King Josiah (late 7th century BCE) and a revised second edition during the exile (6th century BCE), with further revisions in the post-exilic period.[3][4] Traces of this can be seen in the contradictions and illogicalities of the Goliath story - to take a few examples, David turns from Saul's adult shield-bearer into a child herding sheep for his father, Saul finds it necessary to send for him when as the king's shield-bearer he should already be beside his royal master, and then has to ask who David is, which sits strangely with David's status at his court.[5] The Goliath story is made up of base-narrative with numerous additions made probably after the exile:[6]
passage: Khirbet Qeiyafa
Yigal Levin has proposed that the ma'gal (מעגל) or "circular camp" of the Israelites which is mentioned in the story of David and Goliath () was described this way because it fitted the circular shape of the nearby Khirbet Qeiyafa. Levin argues that the story of David and Goliath is set decades before Khirbet Qeiyafa was built and so the reference to Israel's encampment at the ma'gal probably does "not represent any particular historical event at all". But when the story was composed centuries later, the round structure of Khirbet Qeiyafa "would still have been visible and known to the author of ", who "guessed its function, and worked it into his story".