The word you're looking for is buried treasure — valuables concealed in the ground, usually with the intention of coming back for them later.
The practice was real. From the 16th to the 18th century, people commonly hid coin, plate and jewellery beneath floors or in the yard to keep it out of thieves' hands, and caches like that are still turned up during renovations of old houses.