You may very well believe that everything happens for a reason, or that god has a plan. Many people do. But these are YOUR beliefs, and unless you know that the suffering person shares them, they likely won’t serve as comfort the way they might for you. 

Your job is to HEAR, not reduce someone’s worry.