Sa'id bin al-Musayyib (may Allah have mercy on him) said: Two men came to the Prophet (peace and blessings be upon him) with a dispute. Both also presented upright witnesses. He (peace and blessings be upon him) cast lots between the two of them and said: 'Allahumma anta taqdi baynahum' (O Allah, You judge between them). Then he (peace and blessings be upon him) gave judgement for the one whose lot came out.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الدعوى والبينات / 21235