And he said unto him of the twain who he knew would be released : Mention me in the presence of thy lord . But Satan caused him to forget to mention it to his lord , so he ( Joseph ) stayed in prison for some years .