Police officers experience high levels of occupational stress that can negatively affect their psychological well-being. Despite growing scholarly attention to well-being in high-risk professions, the mediating role of gratitude in the relationship between self-compassion and psychological well-being among police officers, particularly within an Islamic positive psychology framework remains largely unexplored. This study examines that mediating role among police personnel in Riau Province, Indonesia. A quantitative cross-sectional survey design was employed with 210 participants selected through purposive sampling. Data were collected using three validated instruments: the Self-Compassion Scale (Neff), a gratitude scale, and the Psychological Well-Being Scale (Ryff), all measured on a five-point Likert scale. Validity (outer loadings > .60; AVE ≥ .50) and reliability (Cronbach's α ≥ .907; CR ≥ .928) were confirmed. Structural Equation Modeling–Partial Least Squares (SEM-PLS) was used for analysis, with discriminant validity confirmed via HTMT values below .90. Results show that self-compassion significantly predicts psychological well-being (β = .487, p < .001) and gratitude (β = .833, p < .001), gratitude significantly predicts psychological well-being (β = .434, p < .001), and gratitude mediates the self-compassion–well-being relationship (β = .362, p < .001), with the model explaining 77.9% of variance in well-being (R² = .779). This study makes a novel theoretical contribution by empirically integrating the Islamic concept of syukur with Western constructs of self-compassion and Ryff's multidimensional well-being model within a law enforcement context in a Muslim-majority society. These findings have practical implications for police organizations, particularly in developing culturally and spiritually grounded mental health interventions that combine self-compassion training with gratitude-based practices rooted in Islamic values to enhance officers' psychological well-being.