"Ashrei Ish Sheba L'Kan V'Talmudo B'Yado" (Pesachim 50a). In the final days of his life, the Chasam Sofer reviewed all the Torah he learned in order to come to Shamayim with his Torah intact. In the last few hours of his life he realized that three Chiddushim of his were no longer clear in his mind. He quickly called for his close talmid, Rav Menachem Katz, who lived not to far from Pressburg, where the Chasam Sofer lay deathly ill.
Rav Menachem reviewed with him these chidushim and then the Chasam Sofer's face lit up content that he would return his neshama to Shamayim with all the Torah still with it. As soon as they finished reviewing, the Chasam Sofer screamed to Rav Menachem Katz, who was a Kohen, "Run out I am dying!" As soon as Rav Katz ran out, he heard the Chasam Sofer say Shema Yisroel as his Holy Neshama departed to the heavens.
Rav Katz later said about his Rebbi that he had such a good heart, that he held back the departure of his Neshama until he was sure that Rav Katz was safely outside without violating the Mitzvos of the Kohen.
bz, BROKLYN, 2009-10-15 15:18:54 What is your source for this story? According to The Sefer Toldos VChidushei R Menachem Katz compiled by Horav Tuvia Steiner A"H a descendant of R' Menachem & a thorough resercher The Chasam Sofer wrote to R Menachem ZTL on erev Sukkos asking him to come as he needs one Chidush at the end of Maseches Sotah. What is noteworthy is that the Chasam Sofer became ill on Hoshana Rabba. Also there is no mention of screaming The Chasam Sofer said "R Menachem Katz gesisa", and pointed to the door, There is no mention of R Menachems comment about the heart of his Rebbe. RE, 2009-10-15 22:12:42 Reshumim B'Shmecha page 50. Stories heard from Rav Yitzchok Shoime Ungar - Gaavad Chug Chasam Sofer. Compiled by Chaim Meir Gantz 5767