01 - Preheat oven to 375°F. Grease a medium casserole dish with olive oil or cooking spray.
02 - Heat olive oil in a large skillet over medium heat. Add the onion and sauté for 2–3 minutes until translucent. Add minced garlic and cook for 1 additional minute until fragrant.
03 - Add diced chicken to the skillet. Season with salt, pepper, dried thyme, and dried basil. Cook for 5–6 minutes, stirring occasionally, until chicken is no longer pink and cooked through.
04 - Reduce heat to medium-low. Stir in softened cream cheese, mixing continuously until fully melted and the mixture is smooth and evenly coated.
05 - Add chopped spinach to the skillet. Cook, stirring continuously, for 2–3 minutes until all the spinach is wilted and incorporated into the mixture.
06 - Pour in heavy cream. Add half of the mozzarella and half of the Parmesan cheese. Stir until the cheeses are fully melted and the sauce is creamy and cohesive.
07 - Transfer the entire mixture to the prepared casserole dish, spreading it into an even layer. Top with the remaining mozzarella and Parmesan cheese.
08 - Bake uncovered for 20–25 minutes, or until the edges are bubbly and the cheese topping is golden brown.
09 - Remove from the oven and allow to rest for 5 minutes before serving. This helps the sauce set for easier portioning.