Sunan Ibn Majah 2314
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِذَا حَكَمَ الْحَاكِمُ فَاجْتَهَدَ فَأَصَابَ فَلَهُ أَجْرَانِ وَإِذَا حَكَمَ فَاجْتَهَدَ فَأَخْطَأَ فَلَهُ أَجْرٌ "
It was narrated from 'Amr bin 'As that he heard the Messenger of Allah (ﷺ) say:
"When the judge passes a judgement and does his best and gets it right, he will have two rewards, and if he passes a judgement and does his best and gets it wrong, he will have one reward." (Sahih) Yazid (one of narrators) said : "So I Narrated it to Abu Bakr bin 'Amr bin Hazm. He said: 'This is how it was narrated to me by Abu Salamah from Abu Hurairah.'"
Full reference and source
Sunan Ibn Majah 2314 In-book : Book 13, Hadith 7 English translation : Vol. 3, Book 13, Hadith 2314
View source on Sunnah.com (opens in a new tab)