Destroy target land. You gain 4 life.
If the targeted land is an illegal target by the time Maw of the Mire resolves, it won’t resolve and none of its effects will occur. You won’t gain 4 life.