Similarly it once happened that while Rabbi was delivering a lecture, he noticed a smell of garlic. Thereupon he said: ‘Let him who has eaten garlic go out.’ R. Hiyya arose and left; then all the other disciples rose in turn and went out. In the morning R. Simeon, Rabbi's son, met and asked him: ‘Was it you who caused annoyance to my father yesterday?’ ‘Heaven forfend that such a thing should happen in Israel,’ he answered.
And from whom did R. Hiyya learn such conduct? — From R. Meir, for it is taught: A story is related of a woman who appeared at the Beth Hammidrash of R. Meir and said to him, ‘Rabbi, one of you has taken me to wife by cohabitation.’ Thereupon he rose up and gave her a bill of divorce, after which every one of his disciples stood up in turn and did likewise. And from whom did R. Meir learn this? — From Samuel the Little. And Samuel the Little? — From Shecaniah son of Jehiel, for it is written, And Shecaniah son of Jehiel, one of the sons of Elam answered and said unto Ezra: We have broken faith with our God and have married foreign women of the peoples of the land: yet now there is hope in Israel concerning this thing.And Shecaniah learnt it from [the story told of] Joshua. As it is written, The Lord said unto Joshua, Get thee up, wherefore, now, art thou fallen upon they face? Israel hath sinned . . . ‘Master of the Universe,’ asked Joshua, ‘who are the sinners?’ ‘Am I an informer?’ replied God. ‘Go and cast lots [to find out].’ Or, if you like, I might say that he learnt it from [the incident with] Moses, as we read, And the Lord said unto Moses, How long refuse ye to keep My commandments and My laws?