Surah Yusuf · سُوْرَةُ يُوسُفَ · Juz 13
Q 12:68
وَلَمَّا دَخَلُوا۟ مِنْ حَيْثُ أَمَرَهُمْ أَبُوهُم مَّا كَانَ يُغْنِى عَنْهُم مِّنَ ٱللَّهِ مِن شَىْءٍ إِلَّا حَاجَةً فِى نَفْسِ يَعْقُوبَ قَضَىٰهَا ۚ وَإِنَّهُۥ لَذُو عِلْمٍ لِّمَا عَلَّمْنَـٰهُ وَلَـٰكِنَّ أَكْثَرَ ٱلنَّاسِ لَا يَعْلَمُونَ
Translations
And when they entered from where their father had ordered them, it did not avail them against Allah at all except [it was] a need within the soul of Jacob, which he satisfied. And indeed, he was a possessor of knowledge because of what We had taught him, but most of the people do not know.Etant entrés comme leur père le leur avait commandé [cela] ne leur servit à rien contre (les décrets d') Allah. Ce n'était [au reste] qu'une précaution que Jacob avait jugé [de leur recommander]. Il avait pleine connaissance de ce que Nous lui avions enseigné. Mais la plupart des gens ne savent pas.Tafsir
So they journeyed with Joseph’s full brother. When they entered through different gates, as their father had instructed them, it did not stop what Allah had decreed for them in any way. It was just Jacob’s concern for his sons which he showed, advising them, knowing that the decree is Allah’s alone. He knew what Allah had taught him in terms of faith in the divine decree and taking precautions, but most people do not know this.
Read Ibn Kathir (Ibn Kathir (abridged, English))
Arabic text: Tanzil (Uthmani). Translations: Sahih International (en), Muhammad Hamidullah (fr). tanzil.net