This is the 6044th most frequent Russian word.
солдатам
"Солдатам" means "to soldiers" in English.
The word 'солдатам' is in the dative case, indicating the recipients of the action (to the soldiers).
Солдатам раздали воду для утоления жажды.
The soldiers were given water to quench their thirst.
Here, 'солдатам' is again in the dative case, used to indicate the entity in whose honor the monument is dedicated.
Памятник солдатам в городе рассказывает о подвигах войны.
The monument to the soldiers in the city narrates the feats of the war.
In this sentence, 'солдатам' is in the dative case, showing the entity towards which the sentiment of gratitude is directed.