The president says devotion to the departed should extend to people who are struggling.