Beautiful Narration: “I Had Sexual Relations With My Wife While Observing The Ramadhaan Fast.”
While we were sitting in the company of Allah’s Messenger (peace be upon him) a man approached and said: “O Messenger of Allah! I’m ruined!”
The Prophet said: “What is the matter?”
He said: “I had sexual relations with my wife while observing the Ramadan fast.”
Allah’s Messenger then asked him: “Can you find a slave whom you can free?” He said “No“. “Then, are you able to fast for two consecutive months?” He said “No“. “Then, do you have the wherewithal to feed 60 poor people?” He said “No“.
So the Prophet (peace be upon him) stopped and considered, and we waited like that until a large basket of dates was brought to him. He asked: “Where is that questioner?”
The man spoke up: “Here I am.”
The Prophet (peace be upon him) said: “Take this and give it out in charity.”
The man then asked: “Messenger of Allah, must I find someone poorer than myself to give it to? By Allah, there is no household in town poorer than my own.”
The Prophet (peace be upon him) laughed until we could see his teeth, the said: “Go feed your family.”
This hadîth is related by Abû Hurayrah in Sahîh al-Bukhârî (1936) and Sahîh Muslim (1111).
A point to be noted is that the Messenger of Allah did not ask the female whom he had sexual relations with to also do any of these acts (fast, feed the poor etc), so a woman is free from such compensations, and Allaah knows best.