Salama bin Yazid Jafi asked the Messenger of Allah ﷺ, "Prophet of Allah, what do you command us to do if rulers come to power over us who demand their rights from us but withhold our rights from us?"The Messenger of Allah ﷺ turned away from him. Then he asked him again, and he turned away from him. Then he asked him a second or third time, and Ashath bin Qays pulled him back.The Messenger of Allah ﷺ said, "Listen and obey, for they are accountable for what is placed upon them, and you are accountable for what is placed upon you."In another narration, Ashath bin Qays pulled him back, and the Messenger of Allah ﷺ said, "Listen and obey," and the rest of the hadith.
سأل سلمة بن يزيد الجعفي رسول الله ﷺ فقال: يا نبي الله، أرأيت إن قامت علينا أمراء يسألونا حقهم ويمنعونا حقنا فما تأمرنا؟ فأعرض عنه، ثم سأله، فأعرض عنه، ثم سأله في الثانية أو في الثالثة فجذبه الأشعث بن قيس وقال: اسمعوا وأطيعوا فإنما عليهم ما حملوا وعليكم ما حملتم. وفي رواية: فجذبه الأشعث بن قيس فقال رسول الله ﷺ: اسمعوا وأطيعوا الحديث.
Muslim narrated it in "Leadership" (1846: 49) via Muhammad bin Jafar, who said, Shuba narrated to us, from Simak bin Harb, from Alqama bin Waail Hadrami, from his father, who said, and then he related it.The other narration is via Shababa, who said, Shuba narrated it to us in the same way.