MN 104: At Sāmagāma
A dispute about livelihood or about the Pātimokkha would be trifling, Ānanda. But should a dispute arise in the Sangha about the path or the way, such a dispute would be for the harm and unhappiness of many
Hearing of the death of the Jain leader, Nigaṇṭha Nātaputta, and their subsequent disputes, the Buddha encourages the Saṅgha to swiftly resolve their own disputes. He lays down a series of seven methods for doing so, which form the foundation for the monastic code.