01 - Preheat oven to 375°F. Lightly grease a 9x13-inch casserole dish with olive oil or non-stick cooking spray and set aside.
02 - Heat olive oil in a large skillet over medium heat. Add the diced onion and sauté for 2 to 3 minutes until soft and translucent. Stir in the minced garlic and cook for an additional minute until fragrant.
03 - Add the diced chicken breast to the skillet. Season generously with salt, pepper, dried thyme, and dried basil. Cook for 5 to 6 minutes, stirring occasionally, until the chicken is golden on the outside and no longer pink in the center.
04 - Reduce heat to medium-low. Add the softened cream cheese to the skillet and stir continuously until fully melted and evenly coated around the chicken and aromatics.
05 - Fold in the chopped spinach and cook, stirring constantly, for 2 to 3 minutes until all the leaves are wilted and incorporated into the mixture.
06 - Pour in the heavy cream and stir to combine. Add half of the mozzarella and half of the Parmesan cheese. Continue stirring over low heat until the cheeses are completely melted and the sauce is smooth and creamy.
07 - Transfer the entire chicken and spinach mixture into the prepared casserole dish, spreading it out into an even layer. Sprinkle the remaining mozzarella and Parmesan evenly over the top.
08 - Bake uncovered on the center rack for 20 to 25 minutes, or until the edges are bubbling and the cheese topping is melted and golden brown.
09 - Remove from the oven and let the casserole rest for 5 minutes to allow the sauce to set before portioning and serving.