What is the meaning of Betide?

Often used in a prediction (chiefly in woe betide) or a wish: to happen to (someone or something); to befall.

Chiefly in the third person: to happen; to take place; to bechance, to befall.

Source: wiktionary.org