Melt butter in a large pot over medium-high heat. Sauté the onion, celery, carrot, and jalapeno for 5 minutes. Add the garlic, ginger, apples, and tomato and sauté for an additional 3 minutes. Season with salt and pepper.
Add all of the spices, thyme and lentils to the pot and sauté for 3 minutes. Add stock and bring to a boil. Reduce heat to medium-low and simmer for about 30 to 40 minutes or until lentils have cooked through.
Pour mixture back into the pot and simmer for 2 minutes. Stir in coconut milk and adjust seasonings according to taste.
Serving suggestion: Place about 1/2 cup of rice at the bottom of each bowl and top with a ladle of soup. Top soup with shredded chicken, a sprinkle of raisins and a few sprigs of thyme. Season with freshly ground black pepper.