Contradiction with Matthew 6:5
While 2 Samuel 22:50 speaks of giving thanks among nations, Matthew 6:5 warns against making public displays of piety to be seen by others, suggesting private devotion instead.
Matthew 6:5: And when thou prayest, thou shalt not be as the hypocrites [are]: for they love to pray standing in the synagogues and in the corners of the streets, that they may be seen of men. Verily I say unto you, They have their reward.