Yusuf 12:42
وَقَالَ لِلَّذِى ظَنَّ أَنَّهُۥ نَاجٍ مِّنْهُمَا ٱذْكُرْنِى عِندَ رَبِّكَ فَأَنسَىٰهُ ٱلشَّيْطَـٰنُ ذِكْرَ رَبِّهِۦ فَلَبِثَ فِى ٱلسِّجْنِ بِضْعَ سِنِينَ
Waqala lillathee thannaannahu najin minhuma othkurnee AAindarabbika faansahu ashshaytanu thikrarabbihi falabitha fee assijni bidAAa sineen
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.
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.