#0102335 The reason why fasting is prescribed in Islam
You must note that one of the names of Allaah is al-Hakeem (the Most Wise). The word Hakeem is derived from the same root as hukm (ruling) and hikmah (wisdom). Allaah alone is the One Who issues rulings, and His rulings are the most wise and perfect.
Secondly:
Allaah does not prescribe any ruling but there is great wisdom behind it, which we may understand, or our minds may not be guided to understand it. We may know some of it but a great deal is hidden from us.
Thirdly:
Allaah has mentioned the reason and wisdom behind His enjoining of fasting upon us, as He says (interpretation of the meaning):