nietzsche wrote this phrase in his book "the gay science" (). it is in the section called "the madman". he also used the phrase in his book "thus spoke zarathustra" (), which is most responsible for making the phrase popular.