Rav Meir Shapiro zt”l of Lublin once related a remarkable story that he found recorded in the Chevra Kadisha records of Lublin.
A young talmid of the מהרש''ל had lost his wife and had no children. Before she passed away, he had promised her that he would never marry again. When the מהרש''ל saw how sad he was, he permitted him to remarry.
Shortly after his engagement, the young man suddenly passed away. When the מהרש''ל heard the news, he instructed the Chevra Kadisha to prepare him for burial, but to notify him before placing him in the grave.
The מהרש''ל arrived at the cemetery and wrote a note addressed to the בית דין של מעלה, declaring that since he had permitted the young man to remarry according to the Torah, he demanded, through the power of Torah, that his life be returned. He placed the note in the young man's hand and instructed that the grave remain open and everyone leave.
A short while later, the entire city was filled with shock and amazement as the young man emerged from his grave, still dressed in his burial garments, and walked through the streets as though nothing had happened!
However, a new problem arose. No woman was willing to marry someone who had returned from the dead! The מהרש"ל therefore once again used the power of Torah and decreed that the entire city of Lublin should forget what had happened.
And so it was. Before long, the remarkable event was completely forgotten, and the young man returned to his normal life. He eventually married and was blessed with children and grandchildren who followed the ways of Torah and Mitzvos.
Wishing you a good Shabbos