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 ...
To help remember the dative prepositions, sing them to the first two lines of the Christmas carol Good King Wenceslas. Remember that King Wenceslas first set out on the ‘date’ (= dative ...