Forgot to give praise

And whoever saw as if he had forgotten the praise, he became distressed and imprisoned for a long time for the story of Yusef, peace be upon him, and perhaps this indicated neglect of obedience to the Almighty saying, ~They forgot God and forgot them .~