وَإِنْ كَانَ مَنْ يَشْتَرِكُ فِي الْبَقَرَةِ الْوَاحِدَةِ أَوِ الْبَدَنَةِ الْوَاحِدَةِ مِنْ قَبَائِلَ شَتَّى لَيْسُوا مِنْ أَهْلِ بَيْتٍ وَاحِدٍ، مَعَ الدَّلِيلِ أَنَّ سُبْعَ بَدَنَةِ وَسُبْعَ بَقَرَةٍ تَقُومُ مَقَامَ شَاةٍ فِي الْهَدْيِ.
Even if those sharing are from different tribes and not from the same family. With the explanation that one-seventh share of a camel or a cow in sacrifice is equal to one goat.