Nahj al-Balāgha

Hadith 1862
gratituderights
٢٩٠. وَقَالَ (عليه ‏السلام): لَوْ لَمْ يَتَوَعَّدِ اللهُ عَلَى مَعْصِيَةٍ لَكَانَ يَجِبُ أَنْ لَّا يُعْصَى شُكْراً لِنِعَمِهِ.
290. Amīr al-mu’minīn, peace be upon him, said: Even if Allāh had not warned of chastisement on those disobedient to Him, it would be obligatory by way of gratefulness for His favours that He should not be disobeyed.
Source: al-Sharīf al-Raḍī