Problem: First Samuel 17 records the dramatic story of how David the son of Jesse killed the giant Goliath. However, 2 Samuel 21:19 says clearly: “Elhanan … killed Goliath the Gittite.” But both texts cannot be right.
Solution: The 2 Samuel text is probably a scribal error in copying the manuscript and should read “Elhanan … slew Lahmi the brother of Goliath the Gittite.” This conclusion is supported by a parallel report of the story in 1 Chronicles 20:5 which has the missing highlighted phrase “Lahmi the brother of,” thus showing it was the brother of Goliath that Elhanan killed and not Goliath, whom David slew just as 1 Samuel 17 reports.