Peel and dice the onion, carrots, and celery into small, even 1/2-inch pieces. Mince the garlic, rinse and pick over the lentils in a fine-mesh strainer, and measure out the spices.
Heat the olive oil in a large Dutch oven over medium heat. Add the onion, carrots, and celery and cook for 8 to 10 minutes, stirring often, until soft and translucent.
Stir in the garlic for 30 seconds, then add the tomato paste and cook for 1 to 2 minutes until darkened. Add the cumin, smoked paprika, and thyme and stir for 30 seconds until fragrant.
Add the rinsed lentils, diced tomatoes with their juices, vegetable broth, bay leaves, salt, and pepper. Scrape up any browned bits and bring the soup to a boil over medium-high heat.
Reduce the heat to medium-low, partially cover, and simmer for 30 to 40 minutes, stirring every 10 minutes, until the lentils are tender but still hold their shape.
Remove the bay leaves. Using an immersion blender, pulse in short bursts for 10 to 15 seconds until about one third of the soup is blended, leaving plenty of whole lentils and vegetables.
Return the pot to low heat and stir in the baby spinach a handful at a time until wilted, about 2 to 3 minutes. Remove from heat and stir in 1 tablespoon of fresh lemon juice.
Taste and adjust with more lemon juice, salt, or pepper. Ladle into warm bowls and garnish with chopped fresh parsley if desired.