Can I make dua for something that already happened?

It depends on what you ask. Asking Allah to undo a past event that you already know the outcome of isn't how dua works. But you can always ask for good to come out of what happened, for forgiveness, for reward for your patience, and for mercy for people who have died. And if you don't know the result yet, like exam marks, you can ask for good.
What's past is decided
Everything that has already happened was written by Allah. Islam teaches us to accept it rather than live in "if only". The Prophet ﷺ said that if something befalls you, don't say "If only I had done this", but say "Allah decreed it, and He does what He wills" (Sahih Muslim 2664). So asking "Ya Allah, make it so that the accident never happened" isn't a meaningful request. See What is qadr in Islam?
What you can ask for about the past
- Good in the aftermath. When something bad happens, the Prophet ﷺ taught us to say: "Inna lillahi wa inna ilayhi raji'un. Allahumma'jurni fi musibati wa akhlif li khayran minha" (We belong to Allah and to Him we return. O Allah, reward me in my affliction and give me something better in its place) (Sahih Muslim 918).
- Forgiveness for past sins. Repentance is the clearest example of dua about the past, and its door stays open.
- Mercy for the dead. Their lives are over, but your dua still reaches them.
- Healing from what happened. Ask Allah to heal your heart, mend a relationship, or fix the damage.
When the result is unknown to you
Sometimes an event is over but you don't know how it went: a job interview, a medical test, an exam that's already marked. Scholars differ here. Many say it's fine to ask Allah for a good result, because you don't know what was written and dua is an act of worship either way. Others say it's better to phrase it as "Ya Allah, make whatever happens good for me", which fits every case. Both approaches are rooted in trust, so pick whichever feels sincere.
Your dua is never wasted
Even if the outcome is already fixed, the dua itself is worship and you are rewarded for it. Allah may answer it by giving you something better, by removing a harm, or by saving the reward for the Hereafter. See Why isn't Allah answering my dua? and What do I say when I hear bad news as a Muslim?
- Asking Allah to reverse a known past event isn't how dua works.
- You can ask for good after a loss, forgiveness, healing and mercy for the dead.
- If you don't know the result yet, many scholars allow asking for good; others prefer "make it good for me".
- Every sincere dua is rewarded, whatever the outcome.
People also ask
What is the most powerful dua in Islam?
There's no single most powerful dua in Islam, but some stand out: the dua of Yunus, Rabbana atina and Sayyid al-Istighfar. What makes dua strong.
Read the full answer →What does "Hasbunallahu wa ni'mal wakil" mean?
Hasbunallahu wa ni'mal wakil means "Allah is enough for us, and He is the best Trustee". Its Quran source, the story behind it and when to say it.
Read the full answer →Is it wrong to ask Allah to let me die?
Yes, the Prophet told us not to wish for death over hardship, but the feeling isn't a sin. The dua he taught instead, and where to get help now.
Read the full answer →Can dua change my destiny?
Yes, dua can change destiny in a real sense: the Prophet said nothing repels the decree except dua. How this fits with qadr, and why no dua is wasted.
Read the full answer →What is dua qunoot?
Dua qunoot is a supplication said standing in prayer, mostly in witr: "Allahumma ihdini fiman hadayt". Words, meaning and when each school says it.
Read the full answer →