Eren was devastated by Sasha's passing. However, because of what he experienced and what he had to do to save the Eldians, hearing Sasha's final words made sense to him and brought back memories of when they were younger, and it was easier to hate the Titans for the devastation they had caused.