An excerpt from "Got Questions.org" entitled, "What does it mean that God is the God of all comfort?" states: "In 2 Corinthians 1:3, God is called the “Father of compassion” and the “God of all comfort.” In His mercy and love, God is eager to provide comfort to His children in any and all circumstances. Whatever the trial we face, our Heavenly Father knows the situation and offers comfort as needed. The fact that He is the God of all comfort teaches that all comfort ultimately comes from Him. He is our source of peace and happiness and blessing.
The comfort we Christians receive flows through us to others “so that we can comfort those in any trouble with the comfort we ourselves receive from God” (2 Corinthians 1:4). Like grace, comfort is an active, powerful gift to be not merely received but actively shared with others, supernaturally multiplied to advance God’s kingdom (Matthew 25:14–30). And so the Bible commends those who are simply with people in trouble, such as those who are sick or in prison, whether or not we can change their circumstances (Matthew 25:36–40). In bringing comfort to those in trouble, we glorify God by giving a glimpse of how He comforts those who are in distress." This article may be viewed at: What does it mean that God is the God of all comfort?/gotquestions.org
Reference: Philippians 2:1