Amr bin As reported,

He heard the Messenger of Allah ﷺ say, "When a judge issues a ruling and exercises his judgment and gets it right, he receives two rewards. When he issues a ruling and exercises his judgment and gets it wrong, he receives one reward."Yazid said, "I narrated this to Abu Bakr bin Amr bin Hazm, and he said, 'This is exactly how Abu Salama narrated it to me from Abu Hurairah.'"

Ibn Majah 2314

Sahih

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

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

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

ابن ماجه 2314صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Rulings
Chapter
Judge strives and arrives at the truth
Numbering
Darussalam 2314
Ibn Majah 2314