The way I heard it: “If the Universe is inhabited, what a scope for pain and folly! If it is not, what a waste of space!”
That quote is from the movie ‘Contact’. Did Carl Sagan write it? I don’t know.