It's a misattributed quote that has become popularized over time. It's often used in discussions of evolution and adaptation, but there's no evidence Darwin actually said it.
The closest Darwin comes to this sentiment is in his book "On the Origin of Species" where he states: "It is not the strongest of the species that survives, nor the most intelligent that survives. It is the one that is most adaptable to change."
While the quote may be a paraphrase of Darwin's ideas, it's not his exact wording and he never stated it in this specific form.
The source of the quote and who first said it remains unclear, making it a popular example of a misattributed quote.