King James Version (KJV)
And as he talked with them, behold, there came up the champion, the Philistine of Gath, Goliath by name, out of the armies of the Philistines, and spake according to the same words: and David heard {them}.
Modern English
As he talked with them, behold, the champion, the Philistine of Gath, Goliath by name, came up out of the ranks of the Philistines, and said the same words; and David heard them.
Hebrew
וְה֣וּא ׀ מְדַבֵּ֣ר עִמָּ֗ם וְהִנֵּ֣ה אִ֣ישׁ הַבֵּנַ֡יִם עוֹלֶ֞ה גָּלְיָת֩ הַפְּלִשְׁתִּ֨י שְׁמ֤וֹ מִגַּת֙ ממערות מִמַּעַרְכ֣וֹת פְּלִשְׁתִּ֔ים וַיְדַבֵּ֖ר כַּדְּבָרִ֣ים הָאֵ֑לֶּה וַיִּשְׁמַ֖ע דָּוִֽד׃
vhvʾ ׀ mdaber ʿimam vhineh ʾiysh habenayim ʿvoleh galyat haplishtiy shmvo migat mmʿrvt mimaʿarkvot plishtiym vaydaber kadbariym haʾeleh vayishmaʿ david