It wasnarrated from Hafsah that the Messenger of Allah (ﷺ) said:
"Thereis no fast for the one who did not make it incumbent uponhimselffrom the night before." (ID)
English reference (ID): Vol. 1, Book 7, Hadith 1700 (ID)
Arabic reference (ID): Book 7, Hadith 1770 (ID)