Sura Yusuf

12:15

فَلَمَّا ذَهَبُوا۟ بِهِۦ وَأَجْمَعُوٓا۟ أَن يَجْعَلُوهُ فِى غَيَٰبَتِ ٱلْجُبِّ ۚ وَأَوْحَيْنَآ إِلَيْهِ لَتُنَبِّئَنَّهُم بِأَمْرِهِمْ هَٰذَا وَهُمْ لَا يَشْعُرُونَ

Så gick de då ut med honom och de fattade gemensamt beslutet att kasta honom i brunnen. - [Då] ingav Vi honom denna tanke: "[En dag] kommer du att berätta för dem om denna ogärning utan att de vet [vem du är]."

Tafsir 12:15

So Jacob sent Joseph with his brothers. They took him a long distance and were determined to throw him to the bottom of a well. In this condition, I sent revelation to Joseph saying, ‘You will inform them of this act of theirs at a time when they will not realise that it is you’.