I have heard this story from my teacher. He is a great person.
Dougen (道元:1200〜1253) was a patriarch of Soutousyu (曹洞宗:Zen Buddhism). He went to China (the Sou dynasty:宋 960〜1279) for learning Buddhism. He was suffered from diarrhea of unknown cause in a ship.
His disease was serious, and so he was worried about the disease very much. He became depressing, and he doubted if he could arrive at China.
One day the storm hit the ship, and the ship might be shipwrecked. He worked for his life to save the ship from the storm. When the storm calmed, he recovered from his serious illness.
He said that illnesses would follow change of mind. We should not be worried about illnesses, but we should live brightly with strong mind. We have the natural healing power in ourselves.