Stop in for a cup of coffee

My Son's oldest boy asked me last year to collect some of these for him to plant. I'm not sure what the tree is. The are sharp as he'll to pick up. I have no idea how the Squirrels open and eat them.

View attachment 1716139981
Did it come from a tree or a smaller plant? Looks a lot like a chestnut.