I shall pass judgement between them as the Messenger of Allah ﷺ passed judgement: the child belongs to (the husband) of the women and the fornicator gets nothing. And he gave them fifty lashes each.
عَلِيٌّ أَقْضِي فِيهِا بِقَضَاءِ رَسُولِ اللهِ ﷺ الْوَلَدُ لِلْفِرَاشِ وَلِلْعَاهِرِ الْحَجَرُ وَجَلَدَهُمَا خَمْسِينَ خَمْسِينَ