Identify this SciFi Movie

I saw “The Day the Earth Stood Still” on AMC the other night. It didn’t end the way I remembered, so I think I must be remembering some other movie that is very similar. A man and a robot come to earth on some kind of space ship. They meet hostility and are aided by a young woman. At the end, just before they take off, the woman says to the robot, “Tell your master (something)”, and the robot says, “You misunderstand; I am the master”.

Title, please?