Amr bin As reported,

The Messenger of Allah ﷺ said, "When a judge gives a ruling and exerts his best effort and gets it right, he receives two rewards, and if he errs, he receives one reward."Yazid said, "I mentioned this to Abu Bakr bin Hazm, and he said, 'This is exactly how Abu Salama narrated it to me from Abu Hurairah from the Prophet ﷺ.'"

Ahmad 17820

Sahih

حدثنا أبو سعيد حدثنا عبد الله بن جعفر قال ثنا يزيد بن عبد الله عن محمد بن إبراهيم عن بسر بن سعيد عن أبي قيس مولى عمرو بن العاص

عن عمرو بن العاص قال

قال رسول الله ﷺ إذا حكم الحاكم فاجتهد فأصاب فله أجران وإن أخطأ فله أجر قال يزيد فذكرت ذلك لأبي بكر بن حزم فقال هكذا حدثني به أبو سلمة عن أبي هريرة عن النبي ﷺ بمثله

أحمد 17820صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Amr bin As
Numbering
Darussalam 17820
Ahmad 17820