Sayyiduna Ibn Mas'ud (may Allah be pleased with him) said: "The greatest of the major sins are: associating partners with Allah, feeling secure from the plan of Allah, losing hope in Allah's mercy, and despairing of Allah's mercy."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 8752