When Toi king of Hamath heard that David had defeated the whole army of Hadadezer,