Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:12:58

And the brothers of Joseph came ˹seeking food˺, and they entered upon him; and he recognized them, but he was to them unknown.  

And Joseph’s brothers came — except for Benjamin — in order to secure provisions, when they found out that the ˹new˺ Court officer of Egypt was providing food at its ˹fair˺ price; and they entered to him, and he recognised them, to be his brothers, but they did not recognise him, not knowing who he was, because it had been a long time since they had seen him, and because they supposed that he had died. They spoke to him in Hebrew and he said to them, as if reproaching them: ‘What brings you to my land?’ They replied, ‘˹We have come˺ for supplies’. He said, ‘You might be spies!’ They said, ‘God forbid!’ He said, ‘So where are you from?’ They said, ‘From the land of Canaan, our father is Jacob, the prophet of God.’ He said, ‘Does he have children other than you?’ They said, ‘Yes. We used to be twelve, but the youngest of us passed away: he perished in the wild. He was the most beloved to him ˹our father˺ from among us; only his full brother remains, and so he keeps him by his side, in order to comfort himself with him in place of the other.’ He ˹Joseph˺ commanded that they be given lodging and treated well.
القرآن:١٢:٥٨

وَجَاءَ إِخْوَةُ يُوسُفَ فَدَخَلُوا عَلَيْهِ فَعَرَفَهُمْ وَهُمْ لَهُ مُنْكِرُونَ  

{وجاء إخوة يوسف} إلا بنيامين ليمتاروا لما بلغهم أن عزيز مصر يعطي الطعام بثمنه {فدخلوا عليه فعرفهم} أنهم إخوته {وهم له منكرون} لا يعرفونه لبعد عهدهم به وظنهم هلاكه فكلموه بالعبرانية فقال كالمنكر عليهم: ما أقدمكم بلادي؟ فقالوا للميرة فقال لعلكم عيون قالوا معاذ الله قال فمن أين أنتم؟ قالوا من بلاد كنعان وأبونا يعقوب نبي الله، قال وله أولاد غيركم؟ قالوا نعم كنا اثني عشر فذهب أصغرنا هلك في البرية وكان أحبَّنا إليه وبقي شقيقه فاحتبسه ليتسلى به عنه فأمر بإنزالهم وإكرامهم.