12:102
ذَٰلِكَ مِنْ أَنۢبَآءِ ٱلْغَيْبِ نُوحِيهِ إِلَيْكَ ۖ وَمَا كُنتَ لَدَيْهِمْ إِذْ أَجْمَعُوٓا۟ أَمْرَهُمْ وَهُمْ يَمْكُرُونَ
That is from the news of the unseen which We reveal, [O Muhammad], to you. And you were not with them when they put together their plan while they conspired.
Translation · Saheeh International
Tafsir
Ibn Kathīr (abridged)
This Story is a Revelation from Allah
Allah narrated to Muhammad ﷺ, the story of Yusuf and his brothers and how Allah raised him over them, giving him the better end, triumph, the sovereignty and wisdom (i.e., prophethood), even though they tried to harm and kill him. Allah said, `This and similar stories are part of the unseen incidents of the past, O Muhammad,
نُوحِيهِ إِلَيْكَ
(which We reveal to you.) and inform you of, O Muhammad, because it carries a lesson, for you to draw from and a reminder to those who defy you.' Allah said next,
وَمَا كُنتَ لَدَيْهِمْ
`(You were not (present) with them), you did not witness their conference nor saw them,