This may be a Big betony (Stachys macrantha). It can be difficult to identify a plant from a photo. Many plants have similar leaf structures; often the flower shape is not clear and the flower colour may not look the same in a photo as in real life. So this is just a best guess at the identity of your mystery plant. You can check my suggestion by looking at this plant on line to see if your plant matches the descriptions and photos.