A sefer on Yoreh Deah authored by R' Shlomo Kluger was stolen from his home. Remarkably, that very same year, his chidushim from the stolen manuscript were printed in his sefer Tuv Taam V’Daas.
R' Kluger writes that the published section was only a small fraction of his teshuvos on Yoreh De’ah—less than one-seventh of them. He explains that he had never considered publishing his extensive writings on the subject due to financial constraints. However, he saw divine providence in the theft.
In my distress over its loss, as I had toiled over it immensely, I accepted upon myself to print it if it was found. After 21 days it was miraculously returned to me. I took it as a sign from Hashem that I was meant to print it, for I had never before seriously considered publishing my teshuvos on Yoreh Deah due to their sheer volume and my lack of means. But now, having despaired of its return, it was suddenly found. This made it clear to me that Hashem orchestrated the theft solely so that I would bring these writings to print.