Is forgetfulness caused by Satan?
Answer:
Yes!
Allah, the Exalted, says:
«وَقَالَ لِلَّذِي ظَنَّ أَنَّهُ نَاجٍ مِّنْهُمَا اذْكُرْنِي عِندَ رَبِّكَ فَأَنسَاهُ الشَّيْطَانُ ذِكْرَ رَبِّهِ فَلَبِثَ فِي السِّجْنِ بِضْعَ سِنِينَ»
“And he said to the one of the two whom he thought would be saved: ‘Mention me to your master.’ But Satan made him forget to mention it to his master, so he remained in prison for several years.”
When Yusuf (peace be upon him) thought that the cupbearer (the one who served wine to his master) was going to be saved, he said to him, concealing it from the other (so that he would not come to know that he was going to be crucified):
«اذْكُرْنِي عِندَ رَبِّكَ» that is, put my case before your king. But he forgot to mention Yusuf (peace be upon him) to his master, and this was a scheme of Satan, so that the Prophet of Allah would not come out of prison; this is what appears to be correct. «والله أعلم»
In «فَأَنسَاهُ الشَّيْطَانُ ذِكْرَ رَبِّهِ», the pronoun refers back to the one who was saved.
«فَلَبِثَ فِي السِّجْنِ بِضْعَ سِنِينَ» He then remained in prison for several years, which is about twelve years, and according to one view fourteen years, but very few people have accepted the fourteen-year view.