“There is no intelligence where there is no change and no need of change.”
H. G. Wells wrote this in The Time Machine, first published in 1895. It appears in Chapter X.
Where it appears
“It is a law of nature we overlook, that intellectual versatility is the compensation for change, danger, and trouble. An animal perfectly in harmony with its environment is a perfect mechanism. Nature never appeals to intelligence until habit and instinct are useless. There is no intelligence where there is no change and no need of change. Only those animals partake of intelligence that have to meet a huge variety of needs and dangers.
From the public-domain edition, read it free.