1 Chronicles 14:9

And the Philistines came and spread themselves in the valley of Rephaim.

1 Chronicles 14:9 is a parallel account of the events surrounding David's rise to kingship over all Israel. It records the setting in which the Philistines advanced and deployed in the valley of Rephaim at that turning point in his accession. It belongs to the history of the kingdom of Judah that parallels the last part of Samuel. Within that history it stands in the prosperous years of David's reign.