Sunan Ibn Majah
Sunan Ibn Majah 3
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو مُعَاوِيَةَ، وَوَكِيعٌ، عَنِ الأَعْمَشِ، عَنْ أَبِي صَالِحٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " مَنْ أَطَاعَنِي فَقَدْ أَطَاعَ اللَّهَ وَمَنْ عَصَانِي فَقَدْ عَصَى اللَّهَ " .
Unreviewed translation. All hadiths in this collection are available in five languages. Titles and introductions may remain in Arabic.
Abu Bakr ibn Abi Shaybah narrated to us: Abu Muawiyah and Waki narrated to us, from al-Amash, from Abu Salih, from Abu Hurayrah, who said: The Messenger of Allah (peace and blessings be upon him) said: Whoever obeys me has obeyed Allah, and whoever disobeys me has disobeyed Allah.
Notes and open questions — unreviewed
The Arabic gives Abu Muawiyah and Waki together in the chain before al-Amash, then states the paired relationship between obedience to the Messenger and obedience to Allah.