Discretion is the better part of valour
This comes from Shakespeare Henry IV Part I, Act V, Scene IV, “The better part of valour is discretion.”