‘Alaamah Abdur-Rahmãn bin Yahya al-Mu’allami [al Yameni] (may Allah have mercy upon) [who died 1386h/1966m] said:
As for ahl-ul-'Ilm (the people of knowledge) and religion from [among] us then surely they do not obey anyone in the religion except Allah and His Messenger ﷺ, and indeed they accept the statements of the scholars based upon them being narrators conveying upon Allah and His Messenger ﷺ. For this reason they do not obey any one from the scholars when it becomes clear that indeed his statement opposes the Book of Allah and the sunnah of His Messenger. And if they accept a statement of a scholar, and then it becomes clear to them his [meaning the scholar’s] opposition to the Book of Allah and the sunnah of His Messenger, they leave it [The statement, not the scholar]*. And those from the Muslims who are upon other than this path, consequently, he/[they] is/[are] upon opposition of the sharee’ah (legislation) [of Islaam], thus, do not pay any attention to him/[them]!
 This statement of ’Allaamah al-Mu’allami in no way negates the obedience to the Muslim ruler, scholar, or ameer (leader/governor of a Muslim city, etc.) in the ma’roof (in good and that which is correct and not disobedience to Allah or the authenticated sunnah of His Messenger). Since, as it it is well known with ahlus sunnah, *there is no obedience to the creation, who ever they may be, in that which is disobedience to the creator*.
 Meaning they are relaying the religion of Islaam upon Allah and His Messenger.
 Our Prophet ﷺ said:
((كل بني آدم خطاء و خير الخطائين التوابون)) [رواه ابن ماجه و غيره]
All the children of Ãdam error and the best of those who error [are] those who repent.
[Related by Ibn Maajah and others]
And he ﷺ said:
((إذا حكم الحاكم فاجتهد ثم أصاب فله أجرانِ، وإذا حكم فاجتهدَ ثم أخطأ فله أجر)) رواه البخاري:٧٣٥٢
When a judge/scholar makes a ruling and he strives [to reach what is correct] and he is correct for him is two rewards, and if he judges/makes a ruling and he strives [to reach that which is correct] and he errors for him is one reward
And Imaam Maalik said:
كل يؤخذ من قوله و يرد إلا صاحب هذا القبر
رواه ابن عبد الهادي في إرشاد السالك: ١/٢٢٨،
Everyone’s statement [can be] accepted or rejected except the inhabitant of this grave,” [meaning our Messenger Muhammad ﷺ.
Source: Ibn Abdul-Haadi in Irshaad as-Saalik 1/227, Ibn Abdul-Barr in al-Jaami’ 2/91 and other than them.
The Salafi-Sunni scholar who errs is not followed in that error and the error is refuted with knowledge-based proofs and evidences, and his honor is preserved. He is not abandoned or dealt with like he is from ahlul-bid’ah, as many of our scholars have mentioned. From them, Shaykh Ubayd bin Abdullah al Jaabari (hafithahullah): “...Thus, this [type of scholar, ie. saahib of sunnah, as the shaykh mentions] is not followed in his mistake [or error] and you preserve his honor. Even if we refuted his opposition to [or contradiction of the truth and that which is correct], surely we [exercise proper] manners with him, and preserve his dignity, and we do not defame him [or deal with him with bad manners], like we denounce the astray innovator. And this is [with] consideration of that which Allah has favored him with, from that of precedence in virtue, high standing, and [position of] leadership in the religion. Consequently, we contemplate all of this...”