David wreaks vengeance on Joab by cursing him and his family.