At the end of his review of the doctrine of salvation, Paul is moved to this wonderful doxology as he contemplates the knowledge and wisdom God has displayed in all His purposes.
We also take time to marvel at our God and to remind ourselves that He has not done all these things first and foremost for our benefit but for His own glory. He needed no-one to advise Him or to counsel Him. He didn’t need anything from anyone and is not indebted to anyone - He has done all for His glory alone.
We apply this teaching to our situation today and draw great comfort from the knowledge that whatever our situations may look like now, God is working all for His glory and for our good if we are His children. Whilst there is no guarantee that all we experience will be fun, there is absolute certainty that God will work it for our good and we can rest in this. With Jonathan Edwards, we should resolve to know and to do our duty and to avoid our sin, leaving the day to day circumstances of our lives to Him.