Green’s Dictionary of Slang

leg before wicket n.

also l.b.w.
[rhy. sl., usu. abbr.]

a ticket, both lit. and fig.; thus not the l.b.w., ‘not the ticket’.

[UK]R. Puxley Cockney Rabbit.