Preheat the oven to 425°F and line a large sheet pan with parchment paper. Pat the chicken thighs dry and season generously with salt and pepper.
In a large bowl, combine the cannellini beans, cherry tomatoes, and sun-dried tomatoes. Drizzle with half the olive oil, minced garlic, rosemary, thyme, salt, pepper, and red pepper flakes. Toss to combine and spread across the prepared sheet pan.
Heat the remaining olive oil in a large skillet over medium-high heat. Sear the chicken thighs skin-side down for 4-5 minutes until golden, then flip and sear for another 2-3 minutes. Transfer the chicken to the sheet pan, nestling it among the bean mixture.
Roast for 25-30 minutes, until the chicken reaches an internal temperature of 165°F. During the last 5 minutes of cooking, add the fresh spinach to the pan, allowing it to wilt from the residual heat.
Remove from the oven and sprinkle with fresh parsley and Parmesan cheese before serving.