1 Samuel 17. This is actually a very complicated story with a lot of subtleties. But yes, David kills a giant with a sling and a stone.