Current rule (v0.111.1)

Forgotten Ritual no longer requires an Exhausted card. Mega Crit removed the condition in Major Update #3, so the base card gives 3 Energy (4 upgraded) every time it is played, for a net gain of 2 after its 1 Energy cost. It then Exhausts.

The cost still has to be paid first. With 0 Energy in hand it cannot be played, so spending the last Energy on another card strands it for the turn.

Replay

With Replay, each play checks nothing about earlier Exhausts, so both plays give Energy. Before v0.111.1 the first play of a Replayed Ritual gave nothing because its own Exhaust had not happened yet.

Earlier versions

In v0.107.1 and earlier the card read “If you Exhausted a card this turn, gain 3 Energy,” and an Exhaust such as Burning Pact had to come first. Player reports of Ritual “not giving Energy” describe that condition. On the default branch they no longer apply; a game version older than v0.111.1 still behaves the old way.