Third Age 3019: Aragorn’s company arrive at Helm’s Deep. They stay for two days, during which Legolas and Gimli visit the Glittering Caves of Aglarond.
Then Legolas repaid his promise to Gimli and went with him to the Glittering Caves; and when they returned he was silent, and would say only that Gimli alone could find fit words to speak of them. ‘And never before has a Dwarf claimed a victory over an Elf in a contest of words,’ said he.
[The Return of the King, LotR Book 6, Ch 6, Many Partings]