Allah Subhanahu Wa Ta'ala says:
فَبَدَاَ بِاَ وْعِيَتِهِمْ قَبْلَ وِعَآءِ اَخِيْهِ ثُمَّ اسْتَخْرَجَهَا مِنْ وِّعَآءِ اَخِيْهِ ۗ كَذٰلِكَ كِدْنَا لِيُوْسُفَ ۗ مَا كَا نَ لِيَأْخُذَ اَخَاهُ فِيْ دِيْنِ الْمَلِكِ اِلَّاۤ اَنْ يَّشَآءَ اللّٰهُ ۗ نَرْفَعُ دَرَجٰتٍ مَّنْ نَّشَآءُ ۗ وَفَوْقَ كُلِّ ذِيْ عِلْمٍ عَلِيْمٌ
"So he began [the search] with their bags before the bag of his brother; then he extracted it from the bag of his brother. Thus did We plan for Joseph. He could not have taken his brother within the religion of the king except that Allah willed. We raise in degrees whom We will, but over every possessor of knowledge is one [more] knowing."
(QS. Yusuf 12: Verse 76)
* Via Qur'an English https://quranapp.id/en
فَبَدَاَ بِاَ وْعِيَتِهِمْ قَبْلَ وِعَآءِ اَخِيْهِ ثُمَّ اسْتَخْرَجَهَا مِنْ وِّعَآءِ اَخِيْهِ ۗ كَذٰلِكَ كِدْنَا لِيُوْسُفَ ۗ مَا كَا نَ لِيَأْخُذَ اَخَاهُ فِيْ دِيْنِ الْمَلِكِ اِلَّاۤ اَنْ يَّشَآءَ اللّٰهُ ۗ نَرْفَعُ دَرَجٰتٍ مَّنْ نَّشَآءُ ۗ وَفَوْقَ كُلِّ ذِيْ عِلْمٍ عَلِيْمٌ
"So he began [the search] with their bags before the bag of his brother; then he extracted it from the bag of his brother. Thus did We plan for Joseph. He could not have taken his brother within the religion of the king except that Allah willed. We raise in degrees whom We will, but over every possessor of knowledge is one [more] knowing."
(QS. Yusuf 12: Verse 76)
* Via Qur'an English https://quranapp.id/en