Where does the D&D concept of a dwarf come from?
In all traditional fantasy RPGs I've heard of or played, Dwarves are a mining/smithing race of short, anti-magic humanoids. They like beer, dislike Elves, hate Orcs/Goblins (and in the systems that have them, Dark Elves and Grey Dwarves) and use Warhammers and Battleaxes as favoured weapons, with some crossbows too.
Where did this trope originate? It seems like it must be older than D&D, which first used them in an RPG (as it was the first RPG). What is the oldest reference to dwarves that is recognisable as what we have today, or was the 'modern' dwarf created by Gygax and co.?