Did he die a fool?
Based on what he wrote, I’d say no – but he may have had many long nights of reliving foolish choices because he thought he was so smart.
Eccl 12:13-14 – The conclusion, when all has been heard, is: fear God and keep His commandments, because this applies to every person. For God will bring every act to judgment, everything which is hidden, whether it is good or evil.
May God teach us to number our days!