حَدَّثَنَا مُحَمَّدُ بْنُ مَهْدِيٍّ ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ ، أَخْبَرَنَا مَعْمَرٌ ، عَنِ الثَّوْرِيِّ ، عَنْ يَحْيَى بْنِ سَعِيدٍ ، عَنْ أَبِي بَكْرِ بْنِ مُحَمَّدِ بْنِ عَمْرِو بْنِ حَزْمٍ ، عَنْ أَبِي سَلَمَةَ ، عَنْ أَبِي هُرَيْرَةَ ، قَالَ : قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ : إِذَا حَكَمَ الْحَاكِمُ فَاجْتَهَدَ فَأَصَابَ فَلَهُ أَجْرَانِ ، وَإِذَا حَكَمَ فَاجْتَهَدَ فَأَخْطَأَ ، فَلَهُ أَجْرٌ .
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When a judge gives a ruling and exerts ijtihad (his utmost scholarly effort) in it and then reaches the correct conclusion, he has two rewards; and when he gives a ruling, exerts ijtihad and then errs, he has one reward."