All perfect praise be to Allah the Lord of the Worlds. May Allah`s peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
Cursing Allah is an act of apostasy and one who commits it must utter the testimonies of faith, make repentance, take back wife; however, it isn`t conditioned that he makes Ghusl (Full body ritual purification) to pray. And Allah The Almighty Knows Best.