Remember, not everyone grieves the same way, and there is no right or wrong way to assert it.
The reality that we cannot take the pain from one who grieves is conveyed in this poem, along with the offer to comfort and hold the hand of the mourner.
Keep in mind that everyone grieves in their own way and that you should never imply that the person needs to move on or cheer up.