If someone intends
to retract the intention of a Wajib (obligatory) Sawm, Sawm becomes nullified. (Part No. 9; Page No. 152) The Prophet (peace be upon him) stated:
The reward of deeds depends upon the intentions.
Hence, if the intention is nullified, the deed - which is Sawm in this question - is consequently nullified.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.