In reality, some victories are actually defeats

According to the book of 1 Samuel, what is the name of the place where Saul had David surrounded, but pulled back because of an invasion by the Philistines?