Quran 12:68 — Joseph (Yousuf)
When they went (to Joseph), they entered in accordance with their father's instructions. Although this could not change anything decreed by GOD, Jacob had a private reason for asking them to do this. For he possessed certain knowledge that we taught him, but most people do not know.
[12:67] And he said, "O my sons, do not enter from one door; enter through separate doors. However, I cannot save you from anything that is predetermined by GOD. To GOD belongs all judgments. I trust in Him, and in Him shall all the trusters put their trust."
[12:69] When they entered Joseph's place, he brought his brother closer to him and said, "I am your brother; do not be saddened by their actions."