In the dative case the personal pronouns are: Sie hat ihm ein Andenken von Berlin geschenkt. – She gave (to) him a souvenir from Berlin. She is giving a souvenir to him, so 'to him' is the ...
Ich gebe dem Mann das Buch. I give the man the book. Two nouns in a sentence - dative before accusative Ich gebe es dem Mann. I give it to the man. One noun, one pronoun in a sentence - pronoun ...