When is supplication (du‘a) more likely to be accepted: before or after breaking the fast in Ramadan?
Du‘a is accepted at all times, and this is part of Allah’s mercy and generosity toward His servants.
The Prophet ﷺ said: "No Muslim makes a supplication that does not involve sin or severing family ties except that Allah grants them one of three things: either He grants their supplication immediately, or He stores it for them in the Hereafter, or He averts from them an equivalent harm." [Narrated by Ahmad]
However, in Ramadan, du‘a is especially likely to be accepted shortly before breaking the fast.
The Prophet ﷺ said: "Three supplications are never rejected: the supplication of a fasting person until they break their fast, the supplication of a just leader, and the supplication of an oppressed person. Allah raises it above the clouds, opens the gates of heaven for it, and says: ‘By My might, I will surely grant you victory, even if after a while.’" [Narrated by Al-Tirmidhi]
What is the ruling on someone who eats or drinks thinking that the sun has set, then realizes that it has not yet set?
Whoever eats or drinks believing that the sun has set, then later discovers that it has not yet set, their fast is invalid, and they must make up that day after Ramadan. It is not permissible to break the fast before confirming sunset—either by seeing it, through personal reasoning, or by relying on the statement of someone trustworthy in their religious commitment.
What is the ruling if someone wipes his head then shaves it - must he repeat it?
If a person performing ablution shaves his head after wiping it during ablution, he is not required to re-wipe his head or repeat the ablution. And Allah the Almighty knows best.
What is the ruling on swimming while fasting?
Swimming while fasting is disliked (makruh) due to the risk of water entering the body cavity (jauf) through the nose, ears, or mouth, which would break the fast.
Ramadan is a month of tasbeeh (glorifying Allah), not Sibaha (swimming).