Dear sheikh, why fasting was made obligatory upon Muslims? What is the wisdom behind the obligation of fas

Dear sheikh, why fasting was made obligatory upon Muslims? What is the wisdom behind the obligation of fasting? We want to make benefit from your knowledge sheikh.

Almighty Allah said “O you who believe! Fasting is prescribed for you as it has been prescribed for those before you, so that you may be God-fearing.” Being God-fearing is achieved through compliance to the commands of Allah and avoidance of His forbiddances inwardly and outwardly. Fasting is one of the catalysts and manifestations of God-fearing. It is a manifestation of submission to the commands of Almighty Allah and being patience with His commands and with fulfilling His injunctions upon His servants.
There are many other benefits on both worldly and hereafter sides, such as being in a state similar to that of the angels and giving up sensual and bodily wants so that one can draw closer to the heavenly world and thus soars to the level of excellence in doing good. Excellence in doing good is to worship Allah as though you see Him. During fasting you refrain from food, drink, whims and desires, which uplifts your spirituality to the level of worshiping Allah as though you see Him. Fasting is one of the Islamic mainstays and obligations prescribed by Almighty Allah to show total submission for Him. One thus follows what was sent down to Muhammad (peace and blessings be upon him). Fasting has so many benefits and virtues in this world and in the hereafter. Were it not for the long time this would take, I would give more explanation.