No one may fast unless he has resolved upon the fast before Fajr.Malik related to me from Ibn Shihab that Ayesha and Hafsa, the wives of the Prophet ﷺ, said the same.
حدثني يحيى عن مالك عن نافع
لا يصوم إلا من أجمع الصيام قبل الفجر و حدثني عن مالك عن ابن شهاب عن عائشة وحفصة زوجي النبي ﷺ بمثل ذلك