Bring the water and lentils to a boil then cook on low for 20 minutes and drain. Cook the pasta according to the package instructions.
Add oil to a large frying pan and bring it to a medium-high heat. Add onions, carrots, and celery and cook for 5 minutes, then add diced mushrooms and cook for 5 more minutes. Add the fire-roasted tomatoes, cooked lentils, broth, soy sauce, Italian seasoning, garlic powder, salt, and pepper. Cook on low for 15 minutes.
Add the pasta to the frying pan with the ricotta and half of the mozzarella cheese. Stir to combine.
Transfer the pasta to a 9x13-inch baking dish, add the remaining mozzarella cheese, cover, and bake for 30 minutes. Let it rest for 15 minutes, then top with fresh basil if desired, and serve.