Source: The Goblin Quest Series, Goblin Hero (2007), Chapter 7 (p. 117)
Related quotes

“Keep your friends close, and your enemies closer.”
Machiavelli commented on the relative ease of gaining favor from friends and enemies in Chapter 20 of The Prince, quoted above. However, this particular wording comes from a line spoken by Michael Corleone in The Godfather Part II (1974), written by Mario Puzo and Francis Ford Coppola:
My father taught me many things here. He taught me in this room. He taught me: keep your friends close, but your enemies closer.
Misattributed

“Keep your friends close, and your enemies closer.”
This has often been attributed to Sun Tzu and sometimes to Petrarch. It comes most directly from a line spoken by Michael Corleone in The Godfather Part II (1974), written by Mario Puzo and Francis Ford Coppola:
My father taught me many things here. He taught me in this room. He taught me: keep your friends close but your enemies closer.
Niccolò Machiavelli, who is also sometimes credited, wrote on the subject in The Prince:
It is easier for the prince to make friends of those men who were contented under the former government, and are therefore his enemies, than of those who, being discontented with it, were favourable to him and encouraged him to seize it.
Misattributed
"Am I the NRA?" collected in Lever Action (2001) and republished online in 2007 http://www.ncc-1776.org/tle2007/tle401-20070114-03.html.

http://www.nytimes.com/2005/03/17/politics/17assess.html.

1950s, Loving Your Enemies (November 1957)