Both versions of the leg curl are known to be effective hamstring strength and muscle-builders. They both effectively target the backs of your thighs without exerting extra pressure on your low back.
That said, some research does suggest that the seated leg curl may be more effective at building hamstring muscle than the lying leg curl. (1) So if you’re chasing maximum muscle growth, you might want to take a seat.