In recent years, the number of deaths due to suicide has increased. Suicide is becoming one of the major causes of death across the whole world. Early detection and prevention of suicide attempts should be addressed to save people’s life. Thus, several studies found that people who are contemplating suicide can be identified by analyzing social media posts. However, finding and comprehending patterns of suicidal ideation represent a challenging task. The literature has suggested that the detection of suicide thoughts at an early stage can help to rescue the life of people. The idea of early detection has led various researchers to carry out research in this direction. Many such studies have used machine learning and deep learning models to predict the idea of suicide. So, this paper reviews the methods that have been performed towards detection of suicidal thoughts using machine learning and deep learning techniques.