Is it true that Zelenskyy said that, or anything along those lines, prior to the invasion in February 2022?
It seems the answer is yes, though what I found is from August 2021 and has a bit more nuance in context. (Did he say it again a month later? Maybe.) Here's the translation that's closest, from TASS:
"I think that if you live on the Donbass territory today, which is temporarily occupied, and you think that ‘our cause is right, we need to be with Russia, we are Russian,’ then it is a big mistake to remain living in Donbass, it will never become Russian territory. Never. It doesn’t matter for how long it has been occupied, it’s like that wall that used to be in Germany," he said. In relation to that, the head of state asserted that "for the sake of your children and grandchildren it is already time to go find a place for yourself in the Russian Federation." According to him, "there won’t be a civilization without Ukraine" on the Donbass territory.
Highlights of the same speech can be found on Zelenskyy's Official website:
If a person living in the occupied territory of Ukraine considers Russia the homeland, then, according to Volodymyr Zelenskyy, it is better for this person to leave Donbas now.
"It will never be a Russian territory. No matter how long it is occupied. In any case, people, history will seize the moment, and this wall will collapse… You love Russia, you think that you have been in Ukraine all your life and felt that it is Russia, then in the name of your children and grandchildren you have to go and look for a place in Russia. This is the right way. Because without Ukraine there will be no civilization in this territory. [...] Donbas in the occupied, cut off type will not grow anywhere. Therefore, there’ll be no happiness here for these people," the President stressed.
The same article is available in Ukrainian and the original Russian. It seems to be also available on YouTube (again, in Russian): Volodymyr Zelenskyy about Crimea and Donbas. Big interview on the TV channel "Dom" (Владимир Зеленский – о Крыме и Донбассе. Большое интервью телеканалу "Дом"). The relevant part seems to happen around 41:00.
The key difference is that Zelenskyy is suggesting those who are pro-occupation should leave.