But since he was a prophet and knew that God had sworn an oath to him that he would set one of his descendants upon his throne,