I went to Israel about thirty years ago, and they stamped a piece of card and tucked it inside your passport for that reason. No idea if it’s still the case.