(Yoosuf) 12 : 42
وَقَالَ لِلَّذِي ظَنَّ أَنَّهُ نَاجٍ مِنْهُمَا اذْكُرْنِي عِنْدَ رَبِّكَ فَأَنْسَاهُ الشَّيْطَانُ ذِكْرَ رَبِّهِ فَلَبِثَ فِي السِّجْنِ بِضْعَ سِنِينَ
And he said to the one whom he thought he would go free: "Remind about me before your master". But Satan made him forget to remind his master, and so Yoosuf remained in prison for a few more years.
"A few more years" in this verse means 3 to 9 years. Satan from men and Jinn have been made enemies to all Prophets and believers as explained in verse 6: 112. By preventing mankind from Adhikr, he prevents them from Lord as told in verse 25: 29. As the Safeguard Adhikr is formed today, whoever holdfasts It, he did holdfast Lord and is guided into the Straightpath. See explanation 7: 22-27 and 18: 63.