Evolutionary rescue is the process by which a population, in response to an environmental change, successfully avoids extinction through adaptation. In spatially structured environments, dispersal can affect the probability of rescue. Here, we model an environment consisting of patches that degrade one after another, and we investigate the probability of rescue by a mutant adapted to the degraded habitat. We focus on the effects of dispersal and of immigration biases. We identify up to three regions delimiting the effect of dispersal on the probability of evolutionary rescue: (i) starting from low dispersal rates, the probability of rescue increases with dispersal;(ii) at intermediate dispersal rates, it decreases; and (iii) at large dispersal rates, it increases again with dispersal, except if mutants are too counterselected in not-yet-degraded patches. The probability of rescue is generally highest when mutant and wild-type individuals preferentially immigrate into patches that have already undergone environmental change. Additionally, we find that mutants that will eventually rescue the population most likely first appear in nondegraded patches. Overall, our results show that habitat choice, compared with the often-studied unbiased immigration scheme, can substantially alter the dynamics of population survival and adaptation to new environments.