In a sense, Joseph was to do what all the later prophets did when they related God’s messages and judgments to His wayward people.
فوجب عليه ان يفعل ما فعله كل الانبياء لاحقا الذين نقلوا رسائل الله وأحكامه الى شعبه المعاند .‏