Eruvin 23 - 29
Rabbi Yochanan said: “King Chizkiya was very ill and Yeshayahu the Prophet went and established a yeshiva at the entrance to the king’s dwelling — from here we learn that when a Torah scholar is ill we should establish a yeshiva at his entrance.”
However, the gemara concludes that this should not be done, since it could entice and incite the Angel of Death to come. If so, why did Yeshayahu do it? The Maharsha answers that Yeshayahu knew for certain that the Angel of Death was going to come anyway, as G-d told him previously in a prophecy (Melachim II 20:1) Subsequently, Chizkiya prayed to G-d (20:3) and Yeshayahu then told him he would be healed (20:5).
- Eruvin 26a
“When Rabbi Zeira was extremely weak from intense Torah study he would go and sit at the entrance of the yeshiva of rabbi Yehuda bar Ami. He said to himself, ‘When the Rabbis exit and enter the yeshiva I will stand up for them (in honor) and will receive reward for this’.”
- Eruvin 28b