A midrash is a method of interpreting the biblical text by providing a short narrative or anecdote that accounts for some irregularity or problem in the text. This particular example can be found in Judah Goldin’s The Fathers According to Rabbi Nathan, Version A, (New Haven: Yale Univ. Press, 1955), p. 20.