Sunan Ibn Majah, Book 37, Hadith 4437 (In-Book) ⓘ
It was narrated that Mu’adh bin Jabal said: “The Messenger of Allah passed by me when I was riding a donkey, and said: ‘O Mu’adh, do you know what Allah’s right over His slaves is and what His slaves’ right over Allah is?’ I said: ‘Allah and His Messenger know best.’ He said: ‘The right of Allah over His slaves is that they should worship Him and not associate anything with Him. And the right of the slaves over Allah, if they do that, is that He should not punish them.’”
حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ الْمَلِكِ بْنِ أَبِي الشَّوَارِبِ، حَدَّثَنَا أَبُو عَوَانَةَ، حَدَّثَنَا عَبْدُ الْمَلِكِ بْنُ عُمَيْرٍ، عَنِ ابْنِ أَبِي لَيْلَى، عَنْ مُعَاذِ بْنِ جَبَلٍ، قَالَ مَرَّ بِي رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ وَأَنَا عَلَى حِمَارٍ فَقَالَ " يَا مُعَاذُ هَلْ تَدْرِي مَا حَقُّ اللَّهِ عَلَى الْعِبَادِ وَمَا حَقُّ الْعِبَادِ عَلَى اللَّهِ " . قُلْتُ اللَّهُ وَرَسُولُهُ أَعْلَمُ . قَالَ " فَإِنَّ حَقَّ اللَّهِ عَلَى الْعِبَادِ أَنْ يَعْبُدُوهُ وَلاَ يُشْرِكُوا بِهِ شَيْئًا . وَحَقُّ الْعِبَادِ عَلَى اللَّهِ إِذَا فَعَلُوا ذَلِكَ أَنْ لاَ يُعَذِّبَهُمْ " .
also referenced under: Hadith 4296 (Reference) & Volume 5, Book 37, Hadith 4296 (DarusSalam)