Pour in the olive oil, add the chopped garlic and onion and the chili flakes. Add salt and pepper and fry for a few minutes to bring out the aromas.
Add the lentils and rosemary, as well as the cabbage cut into strips. Sauté and mix all ingredients well. Add the broth.
Cook on the stove for about 20 minutes, until the lentils are well cooked and the cabbage is tender. Taste and adjust the seasoning: it will certainly be necessary to add salt and pepper.
If you wish, once the lentils are well cooked and have absorbed all the broth, you can make holes and pour an egg in them. In this case, it will be necessary to cook the dish for another 7 or 8 minutes, until the eggs have set.
Once the dish is finished, sprinkle with the chopped parsley and serve.