The story
From Early Modern English woe (“great sadness or distress; calamity, trouble”) + betide (“to happen to, befall”), formerly used to decry a person’s actions. Grammatically, the verb is in the subjunctive mood.
Etymology from Wiktionary, CC BY-SA 4.0.