Sometimes a lonely person who seeks help from a friend or a minister gets the answer: "Well, you just need to pray about your problems and the Lord will work them out." This advice can rub many people the wrong way. Too often it is given in an unsympathetic manner. But let's not be so critical of this response that we overlook it altogether.
Prayer can be an extremely effective tool in over-coming loneliness. In 1 Thessalonians 5:7 we are given the simple directive: "Pray without ceasing."
Overcoming Loneliness, Carter, Meier & Minirth (2000).