If you only do one thing right now
Slow your breathing: in through the nose for 4 seconds, out through the mouth for 6. Repeat for two minutes. Longer exhales calm the body's alarm system.
Do these, in order
Get through tonight
Eat something, drink water, and sleep even if it is poor sleep. If she asks you to leave, ask calmly for a night or two to arrange somewhere. Do not argue the marriage at midnight.
Tell one person
Call one steady friend or family member and say plainly: 'My wife told me she wants a divorce. I'm not okay. Can I talk or can you come over?' You do not need a plan, only company.
Don't drink to cope
Alcohol deepens anxiety and wrecks sleep. Keep it minimal or none for these two days. The same goes for sedatives or gambling.
Hold off on pleading
Begging, threats, or long messages tend to push people further away and can be used later. Say once that you hear her and need time, then stop.
Keep the kids out of the storm
If you have children, do not tell them your version. Agree with her on a short, neutral message if possible. Stay calm, present and normal with them.
Write it out, don't send it
Put every furious or desperate thought in a notes app. Do not send it, post it, or tell mutual friends.
Move your body
A 20 minute walk is enough. It burns off stress chemistry and gives your mind something to do.
Make one safe plan for tomorrow
Pick a meal, a person and a walk. That is the whole plan.