Narrated by Aisha (may Allah be pleased with her): She said that the Messenger of Allah (ﷺ) came to me and I said, "We have kept hais (a type of sweet dish) for you." The Prophet (ﷺ) said, "I intended to fast, but bring it near." (Let me eat it.)
Hadith Referenceمسند الإمام الشافعي / كتاب الصيام / 634
Hadith Takhrijاخرجه مسلم، الصیام باب جواز صوم النافلة بنية من النهار قبل الزوال ..... الخ (1154)۔