The Bible addresses grief and loss directly in several passages:
Matthew 5:4 (KJV)
4 Blessed are they that mourn: for they shall be comforted.
Psalms 34:18 (KJV)
18 The LORD is nigh unto them that are of a broken heart; and saveth such as be of a contrite spirit.
Revelation 21:4 (KJV)
4 And God shall wipe away all tears from their eyes; and there shall be no more death, neither sorrow, nor crying, neither shall there be any more pain: for the former things are passed away.
1 Thessalonians 4:13-14 (KJV)
13 But I would not have you to be ignorant, brethren, concerning them which are asleep, that ye sorrow not, even as others which have no hope. 14 For if we believe that Jesus died and rose again, even so them also which sleep in Jesus will God bring with him.