I filed single but I'm married and received my refund already how can I correct this mistake? and what should my spouse do before he files?

I want to file Joint with my spouse.