It's important to note that this quote is often misattributed. It's not an exact quote from Butler's work. It's likely a paraphrase or a combination of his ideas expressed in different works.
If you're looking for a source for this quote, it's best to approach it as a common saying that captures a sentiment expressed by Butler and many others.