In 2 Corinthians 1, we learn that YAHWEH is the God of all comfort and the Father of all mercies.
“Blessed [gratefully praised and adored] be the God and Father of our Lord Jesus Christ, the Father of mercies and the God of all comfort, who comforts and encourages us in every trouble so that we will be able to comfort and encourage those who are in any kind of trouble, with the comfort with which we ourselves are comforted by God.”
2 Corinthians 1:3-4 AMP
We also learn that we can share the comfort which we received from God with others.