The storyFrom subjunctive may God damn you, compare with similar bless you, with dropped may and God.Etymology from Wiktionary, CC BY-SA 4.0.