E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
Hemp.
To have some hemp in your pocket. To have luck on your side in the most adverse circumstances. The phrase is French (Avoir de la corde-de-pendu duns sa poche), referring to the popular notion that hemp brings good luck.