Dwarves in Middle-earth have a reputation for being greedy, self-centered, and caring only for wealth. These attributes have been ascribed to them since the middle of the First Age, occasionally with good reason. As such, readers/viewers assume that the Dwarves are absent from The Lord of the Rings because they have no interest in defeating the Dark Lord of Mordor. However, that couldn't be further from the truth. In fact, the Dwarven kingdoms were busy fighting one of the largest battles of the entire War of the Ring, leaving only Gimli to aid the race of Men. So, where were the Dwarves in The Lord of the Rings?
Source:https://www.cbr.com/where-dwarves-lord-of-rings/