In The Hobbit, after Thorin and company raid the troll's cave they bury the treasure they looted. It's says "they" cast lots of spells over the treasure to help hide it.
Then they brought up their ponies, and carried away the pots of gold, and buried them very secretly not far from the track by the river, putting a great many spells over them, just in case they ever had the chance to come back and recover them.
Who cast these spells? Gandalf? The dwarves?
If the dwarves, do we see them cast any other spells in the books? I mean this company and their kin. Not the dwarves that put up the secret doors, like the one at Moria.
I know we also see this when the Company finds the hidden door on the Lonely Mountain:
They beat on it, they thrust and pushed at it, they implored it to move, they spoke fragments of broken spells of opening, and nothing stirred.
But I don't know if this means they would or would not know spells of hiding (or if the hiding spells were actually effectual). Yet, I don't think it in Gandalf's character to hide something as trivial as gold for some Dwarves and a Hobbit.