All the great things that Jeroboam did are written in the book The History of the Kings of Israel. This includes the story about Jeroboam winning back Damascus and Hamath for Israel. (These cities had belonged to Judah.)
David also fought against Hadadezer’s army. Hadadezer was the king of Zobah. David fought against that army all the way to the town of Hamath. David did this because Hadadezer tried to spread his kingdom all the way to the Euphrates River.