"Remember" in this context is not remember in literal meaning, but it's refer to "give attention".
If you give attention to Allah through do what He command, and avoid what He prohibit, then Allah will give attention to you through giving His favors and forgiveness.