← Back to Lessons
Stories of Ramadan

The Man Who Forgot He Was Fasting

What happens if you forget you are fasting and take a bite? The Prophet ﷺ had a gentle answer.

A child in a warm kitchen holding a homemade cookie with one bite taken, suddenly remembering they are fasting, while a tray of cookies cools on the counter
Listen
0:00

It is Ramadan, and the sun is high in the sky. Imagine you are fasting, and you walk into the kitchen. Mama has just baked a tray of her delicious homemade cookies, and the whole house smells warm and sweet. Without thinking, you pick one up and take a bite. Then you remember: “Oh no! I am fasting!”

Something like this happened to a man at the time of the Prophet Muhammad ﷺ. He came to the Prophet worried and said, “O Messenger of Allah, I ate and drank because I forgot that I was fasting.”

The Prophet ﷺ did not tell him off. He answered gently, “Allah fed you and gave you drink.”

The Prophet ﷺ taught that whoever forgets they are fasting and eats or drinks should carry on and finish their fast, because it was Allah who fed them and gave them drink.

So the man’s fast still counted. Forgetting is not the same as choosing. Allah knows what is in our hearts, and He is kind to us when we make an honest mistake.

But once you remember, you stop straight away. Put the cookie down, smile, say “Alhamdulillah”, and keep going until the sunset.

What this story teaches us

Allah does not ask us to be perfect. When we forget, He is gentle with us. When we remember, we do our best. That is how a Muslim fasts: with an honest heart, trusting that Allah is kind.

From a hadith narrated by Abu Hurairah (may Allah be pleased with him), recorded in Sahih al-Bukhari and Sahih Muslim. The man’s question to the Prophet ﷺ is recorded in Sunan Abi Dawud.

Try it today

If you are practising a fast and you forget, do not be sad and do not give up. Stop as soon as you remember, say “Alhamdulillah,” and carry on. Your fast still counts!

Read more lessons

For Parents

Source, context, and how to share this story with your child.

What happens if you forget you are fasting and eat?

Your fast still counts. The Prophet Muhammad ﷺ taught that whoever forgets they are fasting and eats or drinks should carry on and complete their fast, because it was Allah who fed them and gave them drink.

What should you do when you remember?

Stop eating or drinking straight away and carry on fasting until sunset. There is nothing to make up for what was eaten while you had forgotten.

Is it the same if someone eats on purpose?

No. The hadith is about honest forgetting. Eating or drinking on purpose during a fast breaks it. For children who are only practising, this is a gentle chance to learn, not something to worry about.

Where is this hadith recorded?

The teaching is narrated by Abu Hurairah and recorded in Sahih al-Bukhari and Sahih Muslim. The account of the man who came and asked the Prophet ﷺ is recorded in Sunan Abi Dawud.

How can I share this with my child?

Tell it before their first practice fast, so they know that a mistake will not spoil their day. It takes the fear out of fasting and shows them that Allah is kind.