Sam: It's like in the great stories Mr. Frodo, the ones that really mattered. Full of darkness and danger they were, and sometimes you didn't want to know the end because how could the end be happy? How could the world go back to the way it was when so much bad had happened? But in the end it's only a passing thing this shadow, even darkness must pass. A new day will come, and when the sun shines it'll shine out the clearer. Those were the stories that stayed with you, that meant something even if you were too small to understand why. But I think Mr. Frodo, I do understand, I know now folk in those stories had lots of chances of turning back, only they didn't. They kept going because they were holding on to something.
Frodo: What are we holding onto, Sam?
Sam: That there's some good in this world, Mr. Frodo, and it's worth fighting for.
Legolas: Final count,42.
Gimli: 42, now that's not a bad score for a pointy eared elf prince. I myself am sitting happily on 43.
[Legolas pulls out an arrow and shoots the Urukhai body Gimli is sitting on.]
Gimli: He was already dead.
Legolas: He was twitching!
Gimli: He was twitching because he's got my axe embedded in his nervous system!
Pippin: I had the LOVELIEST dream last night! There was this large barrel full of pipe-weed, and we smoked all of it. And then you were sick! I'd give anything for a whiff of Old Toby.
Merry: Pippin, everyone knows, I'm the tall one, you're the short one.
Saruman: There will be no dawn... For men.
Saruman: Together, my lord Sauron, we shall rule this Middle-earth. The old world will burn in the fires of industry. Forests will fall. A new order will rise. We will drive the machine of war with the sword and the spear and the iron fist of the orc.
Treebeard: Away with you! You should not be waking! Eat earth! Dig deep! Drink water! Go to sleep!
Saruman: We have only to remove those who oppose us.
Treebeard: Come, my friends, the Ents are going to war. It is likely, that we go to our doom. The last march of the Ents.
Answer: The movie makes it clear that Gandalf has lost some of his memory and his personality has changed. Gandalf actually did die and pass over to the "other side", as it were but was sent back to complete his task. However, he was sent back as a similar, but different entity. Gandalf the White does not have all the memories of Gandalf the Grey, at least at first. He doesn't even remember that he used to be called Gandalf the Grey until someone points this out to him. It is implied that Gandalf doesn't even remember Sam until Aragorn mentions him. Gandalf then searches his memories and remembers who Sam is and his eventual importance to Frodo's quest. When he finally remembers this, he is pleased that Sam went with Frodo, as he will play a crucial role near the end of the journey.