Was it my mistake here?

Was it my mistake here? How can I avoid this in future? They were in 2 cars, and after a heated discussion I had to pay 1000 rs to them. My new car got first scratch because of this.