Amr bin As reported,

He heard the Messenger of Allah ﷺ say, "When a judge issues a ruling, exerting his utmost effort, and arrives at the correct decision, he receives two rewards. And when he issues a ruling, exerting his utmost effort, but errs, he receives one reward."

Muslim 4487

Sahih

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

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

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

مسلم 4487صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Judgments
Chapter
Clarification of the reward for a judge if he exercises ijtihad and is correct or mistaken
Numbering
Darussalam 4487
Muslim 4487