Exodus 2:24 says, "God heard their groaning, and He REMEMBERED his covenant promise to Abraham. . ." How does God remember if He knows everything?! Is this a Biblical flaw? Let's dive in and find out.

Places that scripture uses remember as an idiom:
Gen 9:15; Exod 6:5; Lev 26:42, 45; 1 Chr 16:15; Pss 105:8; 106:45; 111:5; Jer 14:21; Ezek 16:60; Luke 1:72

The average Israelite likely knew at least something about the Abrahamic covenant, and it may be useful for the modern reader to realize that the term zākar, “remember,” is idiomatic for covenant application rather than recollection. In other words, to say “God remembered his covenant” is to say “God decided to honor the terms of his covenant at this time.”

Stuart, D. K. (2006). Exodus (Vol. 2, p. 103). Nashville: Broadman & Holman Publishers.