وَقَالَ لِلَّذِيْ ظَنَّ اَنَّهٗ نَاجٍ مِّنْهُمَا اذْكُرْنِيْ عِنْدَ رَبِّكَۖ فَاَنْسٰىهُ الشَّيْطٰنُ ذِكْرَ رَبِّهٖ فَلَبِثَ فِى السِّجْنِ بِضْعَ سِنِيْنَ ࣖ ( يوسف: ٤٢ )
Wa qaala lillazee zanna annahoo najim minhumaz kurnee 'inda rabbika fa-ansaahush Shaitaanu zikra Rabbihee falabisa fis sijni bad'a sineen (Yūsuf 12:42)
Sahih International:
And he said to the one whom he knew would go free, "Mention me before your master." But Satan made him forget the mention [to] his master, and he [i.e., Joseph] remained in prison several years. (Yusuf [12] : 42)
1 Mufti Taqi Usmani
And he (Yūsuf) said to the one whom he believed likely to be released out of the two, “Tell your master about me.” Then, the Satan made him forget to tell his master. So, he (Yūsuf) remained in prison for a few years.