Surah Yusuf

12:15

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

So when they took him [out] and agreed to put him into the bottom of the well... But We inspired to him, "You will surely inform them [someday] about this affair of theirs while they do not perceive [your identity]."

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’.