Yûsuf 12:42
وَقَالَ لِلَّذِي ظَنَّ أَنَّهُ نَاجٍ مِّنْهُمَا اذْكُرْنِي عِندَ رَبِّكَ فَأَنسَاهُ الشَّيْطَانُ ذِكْرَ رَبِّهِ فَلَبِثَ فِي السِّجْنِ بِضْعَ سِنِينَ ٤٢
Waqala lillathee thanna annahu najin minhuma othkurnee AAinda rabbika faansahu alshshaytanu thikra rabbihi falabitha fee alssijni bidAAa sineena
Then he said to the one he deemed should be saved of the two, ’Mention me in thy lord’s presence.’ But Satan caused him to forget to mention him to his master, so that he continued in the prison for certain years. (12:42)
Yusuf asks the King's Distiller to mention Him to the King
Yusuf knew that the distiller would be saved. So discretely, so that the other man's suspicion that he would be crucified would not intensify, he said,
اذْكُرْنِى عِندَ رَبِّكَ
(Mention me to your King.) asking him to mention his story to the king. That man forgot Yusuf's request and did not mention his story to the king, a plot from the devil, so that Allah's Prophet would not leave the prison. This is the correct meaning of,
فَأَنْسَاهُ الشَّيْطَـنُ ذِكْرَ رَبِّهِ
(But Shaytan made him forget to mention it to his master.) that it refers to the man who was saved. As was said by Mujahid, Muhammad bin Ishaq and several others. As for, `a few years', or, Bida` in Arabic, it means between three and nine, according to Mujahid and Qatadah. Wahb bin Munabbih said, "Ayyub suffered from the illness for seven years, Yusuf remained in prison for seven years and Bukhtanassar (Nebuchadnezzar - Chaldean king of Babylon) was tormented for seven years."