Sayyiduna Zayd bin Arqam (may Allah be pleased with him) said: Three men were brought to Sayyiduna Ali (may Allah be pleased with him) who had had intercourse with a woman in (one) period of purity (tuhr). He asked two of them: Do you acknowledge the child (for this one)? They refused. Then he asked two again: Do you acknowledge the child? They again answered no. Then two were asked: Do you acknowledge the child? They answered no. Then lots were cast between them, and he attached the child to the one whose name the lot fell on, and imposed two-thirds of the blood money (diyah) on him. This story was mentioned before the Prophet (peace and blessings be upon him), and he (peace and blessings be upon him) laughed so much that his molars became visible.
This hadith is counted among those that Abd al-Razzaq alone narrated from Sufyan al-Thawri.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الدعوى والبينات / 21281