A reddish brown nut inside a prickly green covering?
This description matches that of a chestnut, which is a nut enclosed in a spiky, green outer husk. The reddish-brown nut is edible and commonly used in cooking and baking. Be cautious when handling the prickly outer covering to avoid injury.