وَمَنْ دَخَلَ فِي صَوْمِ التَّطَوُّعِ، أَوْ فِي صَلَاةِ التَّطَوُّعِ، ثُمَّ أَفْسَدَهُمَا: قَضَاهُمَا.
Translation: Whoever commences a voluntary fast or a voluntary prayer and then invalidates them must make up the corresponding act.
Quduri groups voluntary fasting and voluntary prayer under a single ruling. Though each is initially optional, the Hanafi school regards a commenced act as requiring completion, with make-up if it is invalidated.
The ruling is expressed in “qaḍāhumā”: make up both. It presumes an act actually begun and then invalidated; forming an unacted-upon intention is not itself the same event.