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 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 throughout.
04 - Reduce heat to medium-low. Stir in softened cream cheese 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 spinach is wilted and incorporated.
06 - Pour in heavy cream. Add half of the mozzarella and half of the Parmesan cheese. Stir until the cheeses are melted and the sauce is smooth and creamy.
07 - Transfer the entire mixture to the prepared casserole dish, spreading evenly. Top with the remaining mozzarella and Parmesan cheese.
08 - Bake uncovered for 20–25 minutes, or until the edges are bubbly and the top is golden brown.
09 - Remove from oven and allow to rest for 5 minutes before serving. This helps the sauce set for easier portioning.