The story
First used in 1690 by British Admiral Arthur Herbert, 1st Earl of Torrington, in defending his strategy of keeping his fleet in port until reinforcements arrived, rather than engaging with the superior French force.
Etymology from Wiktionary, CC BY-SA 4.0.