When Dobby's last words before dying in Harry's arms are "Such a beautiful place, to be with friends. Dobby is happy to be with his friend, Harry Potter."
“Oh for heaven's sake! Listen to me, all of you! You've got just as much right as wizards to be unhappy! You've got the right to wages and holidays and proper clothes, you don't have to do everything you're told — look at Dobby!” 'No, Harry, you listen,' said Hermione.