Certainly a member of the pea family.
The seed pods looks a lot like a Vicia species, all depends of course like Elaine says what the location is the plant is growing and photos of the whole plant, leaves and possibly flowers would help determing which species it is.
https://www.google.be/search?q...
This is the seed pod of Vicia benghalensis as an example..