Jean-Jacques Rousseau said this quote

The real world has its limits; the imaginary world is infinite. Unable to enlarge the one, let us restrict the other, for it is from the difference between the two alone that are born all the pains which make us truly unhappy.