The third tale about the Maharsha: When the Jews built the shul in Ostrog, they needed to raise a substantial amount of money to cover the costs. Therefore, the groundbreaking ceremony and the cornerstone laying were done with great pomp and a lavish ceremony. A great crowd was invited and there was much fanfare. They sold the honor of laying the cornerstone to a wealthy Jew for a bag of gold coins. The latter honored the Maharsha with the laying of the cornerstone. The Maharsha turned to him and asked what he could grant him in return. The rich man asked for a son who would be as great as the Maharsha.
“This is very difficult. Ask for something else,” said the Rav.
However, the rich man would not change his mind and he stubbornly insisted on this and nothing else.
“If so,” said the Maharsha, “I can grant it, but you will die when your wife conceives, and she will die in childbirth. I will adopt and raise the child for you. Only in this way can I fulfill your wish.”
The couple agreed – and so it was.
The Maharsha raised the orphan and he seemed ordinary in every respect; his greatness was hidden. Before the Maharsha passed away, he ordered the orphan whom he had raised to be his successor. The new Rav never participated in the funerals of any of the important personages in town and people ridiculed him for this strange behavior. The next time there was such a funeral he ordered his attendant to tell him. This time the Rav did attend. When he approached the body, he lifted up the shrouds and the horrified crowd saw how the body was taken away by angels of destruction before their very eyes.
“You see?” the Rav exclaimed. “These are your important citizens! How do you expect me to honor them?!”
From that day on, the people recognized his greatness as the Maharsha’s successor. (Koch’vei Ohr)