Cancer is a major public health concern worldwide. It is expected to become one of the most significant barriers to increasing life expectancy globally (Bray et al., 2018; Siegel et al., 2020). During the long treatment and recovery process, patients with cancer may experience different kinds of pain and side effects, which can cause substantial psychological distress (Anderson & Nichols, 2020; Pitman et al., 2018). Long-term distress accumulation can lead to the development of suicidal ideation (SI) in patients with cancer. SI refers to (a) thoughts about ending one's life or engaging in suicide-related behaviours and (b) beliefs that the world would be a better place without him or her (Spoletini et al., 2011). SI is a well-established precursor to suicide attempts and completed suicide, and those who experience SI are at increased risk for suicide attempts and death due to suicide for 2 years (Allen et al., 2013;