Yahya bin Abi Kathir (may Allah have mercy on him) said that Sulayman bin Dawud (peace be upon them both) said to his son: Do not settle any matter until you have consulted your guide; when you do that, you will not grieve.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20310