Midrash (plural, midrashim) refers to a nonliteral elaboration of a biblical text, often for homiletic purposes. Midrash is a genre of rabbinic literature.