Compared to the BM trajectory, after adjusting for age, sex, education, income, geographic region, BMI, and waist circumference, DHC‐MP‐ILF trajectory was significantly associated with increased risk of diabetes (HR: 2.948, 95% CI: 1.450–5.994), further adjusted for all relevant covariates, DHC‐MP‐ILF trajectory still was significantly associated with increased risk of diabetes (HR: 3.228, 95% CI: 1.571–6.632), whereas no association between DLC‐IMP‐IHF trajectory and diabetes was found in our study (p > .05). Here, FOXK2 is linked to diabetes mellitus.