A man came to the prophet (pbuh) and asked him if he had any food. The prophet (pbuh) send a message to his wives, asking them if there was any food in the house to share with this man.
The message came back that there was no food to eat in the house. The prophet (pbuh) then announced to the Sahabah if anyone would like to entertain his guest.
A Sahabi said that he would be honoured to entertain the prophet's (pbuh) guest. However, when the Sahabi came to his house and asked his wife if there was any food to eat, she said there was only enough food for the children to eat.
The sahabi was sad because he could not entertain this guest of the prophet (pbuh) so instructed his wife to put the children to sleep, even though they were hungry. He told her that when it came time to eat, she should turned the lamp off by accident and they would pretend to eat whilst their guest ate to his fill.
The prophet's (pbuh) guest came and they turned the lamp off as planned. The guest ate to his fill whilst the couple pretended to eat the food. The guest ate the food and left the house, not knowing what had taken place.
The prophet (pbuh) was informed by Allah of this great sacrifice the sahabi had made. A verse from the Qur'an was revealed about the sacrifice of this great family. Sharing with others is a great act of worship in Islam