“Do not hasten in your spirit to be angry, for anger rests in the bosom of fools.”
So I’m wondering if Solomon is saying this from his database of wisdom or if it comes from a reflection on a life full of anger. I’m not sure. Of course he wrote similar things in Proverbs, but the context of Ecclesiastes comes from personal experience, so perhaps Solomon struggled with anger on multiple occasions.
