The story of David and Goliath comes from the Bible's Old Testament, specifically from 1 Samuel 17 where the young shepherd David defeats the Philistine giant Goliath with just a sling and a stone.