Problem: Critics claim that the God of the Bible isn’t truly omniscient, because passages like these show him with human features.
Solution: When it says “God remembered,” this doesn’t mean that God has a foggy memory. Instead, in the biblical sense, it means that God chooses to act. For instance, when God remembered Noah, it meant that “God caused a wind to pass over the earth” (Gen. 8:1). When God remembered Hannah, it meant that he helped her with pregnancy (1 Sam. 1:19). Likewise, the problem with the dead is not their ability to remember, but their ability to act (Ps. 6:5). This is just anthropomorphic language that the inspired author used to describe God.
“And God heard their groaning, and God remembered his covenant with Abraham, with Isaac, and with Jacob. (Ex 2:24)”