38:5,6
Zedekiah was a very weak and duplicitous king. He ignored the word of God, then wanted to hear the word from Jeremiah, now instead of defending Jeremiah he tells the officials that they can do what they like with him. Zedekiah was something of the Pontius Pilate of his day. So the officials had Jeremiah lowered into a cistern. This cistern had no water in it, only slimy mud, and Jeremiah sank down into the mud. His situation was not good.
38:7-9
While many were against him, not everyone was acting evilly. God had earlier promised to protect Jeremiah, and we see that promise being fulfilled here. It is a Cushite who comes to speak up for Jeremiah. Throughout the Old Testament there are little occasions here and there of non-Jewish people acting well. So we see two things here. God protecting us doesn’t mean we will have an easy or trouble free life. Secondly, being in dire circumstances, as Jeremiah undoubtedly was, does not mean God has forgotten us. Ebed-Melek tells the king that the officials have acted in a wicked manner.