If you want to offer a widow hope, encourage her to hope in God. Not in God changing her circumstances, but being with her no matter what comes.
There are ways in which we can prepare our lives to find comfort even after the death of a spouse.