Text this: Election and rejection in the Midrash