Sunan Abi Dawud 3574
Grading supplied with this record: Sahih (Al-Albani)
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 that `Amr bin Al-`As said "The Messenger of Allah said:
If a judge passes a judgment having exerted himself to arrive at what is correct, and he is indeed correct, he will have two rewards. If he passes judgment having exerted himself to arrive at what is correct, but it is incorrect, he will have one reward.'" I narrated it to Abu Bakr bin Hazm and he said: "This is what Abu Salamah narrated to me from Abu Hurairah.
Full reference and source
Sunan Abi Dawud 3574 In-book : Book 25, Hadith 4 English translation : Book 24, Hadith 3567
View source on Sunnah.com (opens in a new tab)