“And the children of Israel groaned because of the labor (in the field), and their cry rose up to God because of the labor (of idol worship). And God saw the children of Israel, and God knew.” (Exodus 2:23–25)
The matter is that there are two kinds of cries: one arising from the desire to draw closer to the blessed Creator, and the other arising from one's distance from Him.
The children of Israel in Egypt were immersed in the forty-nine [gates of impurity]. Nevertheless, they did not change their names, their language, or their clothing (Vayikra Rabbah 32:5). That is, their servitude was external, while their hearts were not truly with it.
Therefore, “both this one and that one judged them.” On the one hand, they yearned for the pots of meat and for bread to satisfy their hunger, as it is written (Exodus 16:3): “When we sat by the pots of meat,” and so forth.
It is self-evident that, because of this, they submitted themselves to Pharaoh and the Egyptians in order to attain bodily fulfillment and the complete satisfaction of their desires. Consequently, “they embittered their lives with hard labor,” both in the city and in the field.
This is the secret concerning the tribe of Levi: because they were content with little, they were not subjected to bondage.
In truth, they lacked nothing in their physical lives. The proof is that they repeatedly wished to return to Egypt. Most significantly, they recalled the complete satisfaction of their bodily desires that they had enjoyed there, as it is written (Exodus 16:3): “When we sat by the pots of meat,” and so forth.
Thus, their entire cry was because of the labor — namely, the service of the blessed Creator, in which they were utterly dry and devoid of everything: without feeling, without savor, and surrounded by every abomination and impurity. Holiness was subdued beneath the Klipa (shell of impurity) of Pharaoh and Egypt, and so forth.
This is the meaning of what is written (Exodus 2:23): “And they groaned … and their cry rose up to God” — that is, for the sake of God.
Yet, in truth, their entire cry was merely outward, from the lips alone, corresponding to the aspect of “they did not change their language.” If so, how did their prayer reach its proper destination?
This is why it is written (Exodus 2:25): “And God saw the children of Israel.” That is, although the children of Israel were immersed [in impurity] and did not see the blessed Creator, nevertheless, the blessed Creator saw them.
Likewise, “And God knew”: although they did not know the blessed Creator, nevertheless, the blessed Creator descended to them and accepted their prayer, even though their mouths and their hearts were not in accord.
This is the meaning of what is written (Exodus 3:8): “And I have come down to deliver them” — meaning that He descended from His degree.
And this is the meaning of what is written (Exodus 2:23): “And the children of Israel groaned because of the labor” — because of the multitude of burdens and the bitterness arising from unsatisfied needs that continually troubled them.
However, “their cry rose up to God because of the labor” — meaning that, before Him, it was regarded as though they had prayed for the things of God.