at this time , however , the clan leaders of the two main tribes of the city of yathrib , about 200 miles north of mecca , invited muhammad to live there in the role of impartial religious authority to arbitrate disputes .