The author, may Allah shower blessings on him, said: The chapter on fasting person safeguarding his tongue and limbs. The intent is that the one who is observing the fast must refrain from every illicit speech and action. This is because Allah, the Most High, mandated fasting for the purpose of piety as He, the Exalted said:
“O you who believe! The Fasting is prescribed for you as it was prescribed for those before you, that you may become Al-Muttaqun (the Pious)” (Al-Baqarah: 183). That is, so that you will fear Allah, the most High, and abstain from His prohibitions.
Allah does not intend to bear down heavily upon His servants by commanding them to abstain from food, drink and sexual intercourse. However, He wants them to comply with His order and refrain from His prohibition, so the fasting is a training institute to accustom them to forsaking the prohibitions and performing the obligations.
If one spends a complete month safeguarding his religion, abstaining from the unlawful and carrying out the obligations, this will change one's pattern of life. Consequently, Allah explained the wisdom behind it, which is piety.
The Prophet ﷺ said, “When anyone of you is observing a fasting on a day, he should neither indulge in obscene language nor should he raise his voice.” That is, he should neither indulge in unlawful act nor utter illicit statement. “And if anyone reviles him,” that is, abuses or insults him, “or tries to quarrel with him, he should say, I am observing fast.” In this manner, he absolves himself of any perceived inability to defend himself and explains to his antagonist that he would have replied in kind if not for fasting. So, he remains honoured and not disgraced; however, he submitted in humility to the worship and obedience of Allah, the most High.
Similarly, the Prophet ﷺ said, "Whoever does not leave falsehood" that is, illicit statements "and acting on it" that is, the falsehood "and ignorance," as contained in another version, that is, oppressing people, "Allah is not in need of him leaving his food and his drink." Allah has no need for one abstaining from food and drink; He, the most High, did not mandate fasting for this but for a more important reason, which is abstaining from the prohibitions and performing the obligations.
Allah alone grants success.