Contradiction with Matthew 5:44
1 Samuel 23:24 mentions the Ziphites going against David, while Matthew 5:44 teaches to love enemies and do good to those who persecute you.
Matthew 5:44: But I say unto you, Love your enemies, bless them that curse you, do good to them that hate you, and pray for them which despitefully use you, and persecute you;
Contradiction with Romans 12:19
1 Samuel 23:24 involves seeking favor by betraying David, but Romans 12:19 advises against taking revenge, leaving it to God’s wrath.
Romans 12:19: Dearly beloved, avenge not yourselves, but [rather] give place unto wrath: for it is written, Vengeance [is] mine; I will repay, saith the Lord.
Contradiction with Exodus 23:4-5
Unlike the hostility in 1 Samuel 23:24, Exodus 23:4-5 instructs helping your enemy if they are in trouble.
Exodus 23:4-5: If thou meet thine enemy's ox or his ass going astray, thou shalt surely bring it back to him again.
Contradiction with Proverbs 25:21-22
The Ziphites' actions in 1 Samuel 23:24 contradict feeding and giving drink to your enemy as advised in Proverbs, overcoming evil with good.
Proverbs 25:21-22: If thine enemy be hungry, give him bread to eat; and if he be thirsty, give him water to drink:
Contradiction with 1 Peter 3:9
In contrast to the betrayal in 1 Samuel 23:24, 1 Peter 3:9 advocates not repaying evil for evil or insult for insult, but giving a blessing.
1 Peter 3:9: Not rendering evil for evil, or railing for railing: but contrariwise blessing; knowing that ye are thereunto called, that ye should inherit a blessing.