This is called Bishop's weed (
Ridolfia segetum
). At first I thought it was a kind of fennel because of its appearance and good smell. Like fennel, it is in the carrot family; it is also "full of etheric essence" and often used in pickling.