To "agree to disagree" is to resolve a conflict (usually a debate or quarrel) by having all parties tolerating but not accepting the opposing positions.
It generally occurs when all sides recognize that further conflict would be unnecessary, ineffective or otherwise undesirable.
In 1770, the phrase "agree to disagree" appeared in print in its modern meaning when, at the death of George Whitefield, John Wesley wrote a memorial sermon which acknowledged but downplayed the two men's doctrinal differences: There are many doctrines of a less essential nature ...
"[3]Though Whitefield and Wesley appear to have popularized the expression in its usual meaning, it had appeared in print much earlier (1608) in a work by James Anderton, writing under the name of John Brereley, Priest, although his usage lacks the implication of tolerance of differing beliefs.
And as our learned adversaries do thus agree to disagree in their owne translations, mutually condemning (as before) each other... (The Protestants Apologie for the Roman Church Deuided into three seuerall Tractes)[4]The phrase "agree to differ" appeared in the early part of the 18th century in a sermon by John Piggott: "And now why should we not agree to differ, without either enmity or scorn?