[Machine] And We wrote for him on the tablets concerning everything as a reminder and detailed explanation of everything. [Al-A'raf 145]
He (Moses) said, so Moses agreed that everything was confirmed to him, just as you see that your scholars have confirmed everything for you. So when Moses reached the shores of the sea, he met the scholar and asked him to let him learn from his knowledge. The scholar admitted to Moses that he had knowledge, and Moses desired to follow him in order to gain guidance from his teachings. However, the scholar realized that Moses could not tolerate his company nor bear the knowledge he possessed. The scholar said to Moses, "You cannot tolerate being patient with me, so how can you be patient with that which you are not aware of?" Moses said to him, while excusing himself, "You will find me, if Allah wills, patient and obedient to your command." The scholar then realized that Moses could not tolerate his company nor bear his knowledge. He said to him, "If you are to follow me, then do not ask me about anything until I inform you of it." They both embarked on a ship, and the scholar made a hole in it, which pleased Allah but angered Moses. Then they encountered a young boy, and the scholar killed him, which pleased Allah. [The rest of the story is mentioned by Ibn Abbas.]
{وَكَتَبْنَا لَهُ فِي الْأَلْوَاحِ مِنْ كُلِّ شَيْءٍ مَوْعِظَةً وَتَفْصِيلًا لِكُلِّ شَيْءٍ} [الأعراف 145] قَالَ فَكَانَ مُوسَى يَرَى أَنَّ جَمِيعَ الْأَشْيَاءِ قَدْ أُثْبِتَتْ لَهُ كَمَا تَرَوْنَ أَنْتُمْ أَنَّ عُلَمَاءَكُمْ قَدْ أَثْبَتُوا لَكُمْ كُلَّ شَيْءٍ كَمَا يُثْبِتُوهُ فَلَمَّا انْتَهَى مُوسَى إِلَى سَاحِلِ الْبَحْرِ لَقِيَ الْعَالِمَ فَاسْتَنْطَقَهُ فَأَقَرَّ لَهُ بِفَضْلِ عَلْمِهِ وَلَمْ يَحْسُدْهُ قَالَ لَهُ مُوسَى وَرَغِبَ إِلَيْهِ هَلْ أَتَّبِعُكَ عَلَى أَنْ تُعَلِّمَنِيَ مِمَّا عُلِّمْتَ رُشْدًا فَعَلِمَ الْعَالِمُ أَنَّ مُوسَىَ لَا يُطِيقُ صُحْبَتَهُ وَلَا يَصْبِرُ عَلَى عِلْمِهِ فَقَالَ لَهُ الْعَالِمُ إِنَّكَ لَا تَسْتَطِيعُ مَعِيَ صَبْرًا وَكَيْفَ تَصْبِرُ عَلَى مَا لَمْ تَحِطْ بِهِ خُبْرًا فَقَالَ لَهُ مُوسَى وَهُوَ يَعْتَذِرُ سَتَجِدُنِي إِنْ شَاءَ اللَّهُ صَابِرًا وَلَا أَعْصِي لَكَ أَمْرًا فَعَلِمَ أَنَّ مُوسَىَ لَا يُطِيقُ صُحْبَتَهُ وَلَا يَصْبِرُ عَلَى عِلْمِهِ فَقَالَ لَهُ فَإِنِ اتَّبَعْتَنِي فَلَا تَسْأَلْنِي عَنْ شَيْءٍ حَتَّى أُحْدِثَ لَكَ مِنْهُ ذِكْرًا فَرَكِبَا فِي السَّفِينَةِ فَخَرَقَهَا الْعَالِمُ وَكَانَ خَرَقَهَا لِلَّهِ رِضًا وَلِمُوسَى سُخْطًا وَلَقِيَ الْغُلَامَ فَقَتَلَهُ لِلَّهِ رِضًا «ثُمَّ ذَكَرَ بَعْضَ الْقِصَّةِ وَالْكَلَامِ وَلَمْ يُجَاوِزِ ابْنُ عَبَّاسٍ»