They fled into Palestine*, and later established the state of Israel. Saying they fled into Israel assumes there was an Israel to begin with, but there wasn't.
Yes, it was a British colony... Either way, the vast majority moved there after the state was established. And yes, most suffered prosecution around the world including Arab countries. Pogroms against Jews are documented since centuries.