أَخْبَرَنَا مُحَمَّدُ بْنُ بَشَّارٍ، قَالَ : حَدَّثَنَا أَبُو عَامِرٍ، قَالَ: حَدَّثَنَا سُفْيَانُ، عَنْ الشَّيْبَانِيِّ، عَنْ الشَّعْبِيِّ، عَنْ شُرَيْحٍ، أَنَّهُ كَتَبَ إِلَى عُمَرَ يَسْأَلُهُ، فَكَتَبَ إِلَيْهِ: أَنْ اقْضِ بِمَا فِي كِتَابِ اللَّهِ، فَإِنْ لَمْ يَكُنْ فِي كِتَابِ اللَّهِ فَبِسُنَّةِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، فَإِنْ لَمْ يَكُنْ فِي كِتَابِ اللَّهِ، وَلَا فِي سُنَّةِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، فَاقْضِ بِمَا قَضَى بِهِ الصَّالِحُونَ، فَإِنْ لَمْ يَكُنْ فِي كِتَابِ اللَّهِ، وَلَا فِي سُنَّةِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، وَلَمْ يَقْضِ بِهِ الصَّالِحُونَ، فَإِنْ شِئْتَ فَتَقَدَّمْ، وَإِنْ شِئْتَ فَتَأَخَّرْ، وَلَا أَرَى التَّأَخُّرَ إِلَّا خَيْرًا لَكَ، وَالسَّلَامُ عَلَيْكُمْ

Book [49]: The book of the etiquette of judges
Chapter [11]: Ruling according to the consensus of the scholars

Ḥadīth [5399]: It was narrated from Shurayḥ that he wrote to ‘Umar, to ask him (a question), and ‘Umar wrote back to him telling him: “Judge according to what is in the Book of Allāh. If it is not (mentioned) in the Book of Allāh, then (judge) according to the Sunnah of the Messenger of Allāh (peace and blessings of Allāh be upon him). If it is not (mentioned) in the Book of Allāh or the Sunnah of the Messenger of Allāh (peace and blessings of Allāh be upon him), then pass judgment according to the way the righteous passed judgment. If it is not (mentioned) in the Book of Allāh, or the Sunnah of the Messenger of Allāh (peace and blessings of Allāh be upon him), and the righteous did not pass judgment concerning it, then if you wish, go ahead (and try to work it out by yourself) or if you wish, leave it. And I think that leaving it is better for you. And peace be upon you.”

• Sunan ad-Dārimī (167 (1/44))
• Muṣannaf ibn Abī Shaybah (24490 (12/517-518))
• Bayhaqī’s Sunan al-Kubrā (20342 (10/196))
• Nasā’ī’s Sunan al-Kubrā (5911 (5/406))
• Ḥilyatul Awliyā’ (4/136)
• Tuḥfatul Ashrāf (10463 (7/205))
• Tārīkh ad-Dimashq (23/19-21)
• Siyar A’lām an-Nubalā’ (4/101)
• Jāmi’ Bayān al-‘Ilm wa-Faḍlihi (1595-1596 (2/846-847))

Grade:

Ṣaḥīḥ by Abū al-Ashbāl az-Zuhayrī (Jāmi’ Bayān al-‘Ilm wa-Faḍlihi, published by Dar ibn al-Jawzi)
• Ṣaḥīḥ isnād mawqūf by Shaykh al-Albānī (Sunan an-Nasā’ī (5399 (1/811))

Ṣaḥīḥ isnād by Majlis ‘Ilmi Dar ad-Da’wah, New Delhi (Sunan an-Nasā’ī (5401 (4/549-550))
• Ṣaḥīḥ by Ḥāfiẓ Zubayr ‘Alī Za’ī (Sunan an-Nasā’ī (5101 (1/1007))
• Ṣaḥīḥ by Shaykh Sa’d bin Nāṣir ash-Shitrī (Muṣannaf ibn Abī Shaybah)

• Isnād jayyid by Shaykh ‘Abdul-Mannān Rāsikh (169 (1/166-167); Sunan ad-Dārimī, published by Ansarus Sunnah Publications, Lahore)