30 He was a prophet and knew God had promised him that he would make a person from David's family a king just as he was.