We believe the verses you are referring to are found in 2 Kings 6:28-29 and relate to a terrible famine that was the result of the Syrians besieging Samaria during the time of the prophet Elisha. God allowed the siege and the famine because the Israelites no longer honored Him and had become idolatrous, making sacrifices (sometimes even their own children) to foreign gods.

As the king of Israel was passing by a woman cried out for help. “Then he asked her, 'What's the matter?' She answered, 'This woman said to me, “Give up your son so we may eat him today, and tomorrow we'll eat my son.”  So we cooked my son and ate him. The next day I said to her, “Give up your son so we may eat him,” but she had hidden him.'” (2 Kings 6:28-29)

Much earlier in Israel’s history, God warned the Israelites about the curses that would come upon them if they disobeyed Him and rejected the covenant He made with them. Part of Deuteronomy 28 describes the horrors that would be fulfilled in 2 Kings 6:28-29.

“They shall besiege you at all your gates until your high and fortified walls, in which you trust, come down throughout all your land; and they shall besiege you at all your gates throughout all your land which the LORD your God has given you. You shall eat the fruit of your own body, the flesh of your sons and your daughters whom the LORD your God has given you, in the siege and desperate straits in which your enemy shall distress you.” (Deuteronomy 28:52-53)