It is narrated from Sayyidah Aishah (may Allah be pleased with her) that she said: "The Messenger of Allah (peace and blessings be upon him) came to me one day and asked: 'Do you have anything to eat?' I said: 'No.' So he (peace and blessings be upon him) said: 'Then I am fasting.' Then on another day he (peace and blessings be upon him) came and asked: 'Do you have anything?' I said: 'Yes.' So he (peace and blessings be upon him) said: 'Then I will break my fast, even though I had intended to fast (or had made it binding on myself).'"
Abu Dawud al-Tayalisi recorded it from Sulayman bin Mu'adh, who is weak. Musaddad also recorded it by way of Layth bin Abi Sulaym, from Mujahid, from some of the pure wives of the Prophet (peace and blessings be upon him) (may Allah be pleased with them), who said: "The Prophet (peace and blessings be upon him) would come and ask for food, and when he found none, he would make the intention to fast. She said: Sometimes he (peace and blessings be upon him) would come while he (peace and blessings be upon him) was fasting and I had some rare gift or food with me, and we would say: 'O Messenger of Allah (peace and blessings be upon him)! If you were not fasting, we would present this to you.' Then he (peace and blessings be upon him) would ask for it and eat."