E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
Halloo when out of the Wood,
or Never halloo till you are out of the wood. Never think you are safe from the attacks of robbers till you are out of the forest. Call no man happy till he is dead. Many a slip twixt the cup and the lip.