The Basis of Morality by Part 3 Chapter 6 Page 31

It is, then, obvious that, just as I am not wrong, that is, right in resisting violence by violence, so where violence is not feasible, or it appears more convenient, I am at liberty to resort to cunning; accordingly, whenever I am entitled to use force, I may, if I please, employ falsehood; for instance, against robbers and miscreants of every sort, whom in this way I entice into a trap. Hence a promise which is extorted by violence is not binding.

But, as a matter of fact, the right to avail myself of lies extends further. It occurs whenever an unjustifiable question is asked, which has to do with my private, or business affairs, and is hence prompted by curiosity; for to answer it, or even to put it off by the suspicion-awakening words, “I can't tell you,” would expose me to danger. Here an untruth is the