Some Buddhists point to other early texts as justifying defensive war. One example is the "Kosala Samyutta", in which King Pasenadi, a righteous king favored by the Buddha, learns of an impending attack on his kingdom. He arms himself in defence, and leads his army into battle to protect his kingdom from attack. He lost this battle but won the war. King Pasenadi eventually defeated King Ajatasattu and captured him alive. He thought that, although this King of Magadha has transgressed against his kingdom, he had not transgressed against him personally, and Ajatasattu was still his nephew. He released Ajatasattu and did not harm him. Upon his return, the Buddha said (among other things) that Pasenadi "is a friend of virtue, acquainted with virtue, intimate with virtue", while the opposite is said of the aggressor, King Ajatasattu.