He was a prophet and knew something that God had said. God had promised David that someone from his own family would sit on David’s throne as king.