What does Matthew 5:23 mean?

Matthew 5:23 KJV
Therefore if thou bring thy gift to the altar, and there rememberest that thy brother hath ought against thee;

Matthew 5:23 NKJV
“Therefore if you bring your gift to the altar, and there remember that your brother has something against you,

Matthew 5:23 MKJV
Therefore if you offer your gift on the altar, and there remember that your brother has anything against you,

Matthew 5:23 KJV 2000
Therefore if you bring your gift to the altar, and there remember that your brother has anything against you;

Interlinear KJV

Therefore /oun/ if /ean/ thou bring /prosphero/ thy /sou/ gift /doron/ to /epi/ the altar, /thusiasterion/ and there /kakei/ rememberest /mnaomai/ that /hoti/ thy /sou/ brother /adelphos/ hath /echo/ ought /tis/ against /kata/ thee; /sou/

Adam Clarke’s Commentary

Verse 23. Therefore if thou bring thy gift] Evil must be nipped in the bud. An unkind thought of another may be the foundation of that which leads to actual murder. A Christian, properly speaking, cannot be an enemy to any man; nor is he to consider any man his enemy, without the fullest evidence: for surmises to the prejudice of another can never rest in the bosom of him who has the love of God in his heart, for to him all men are brethren. He sees all men as children of God, and members of Christ, or at least capable of becoming such. If a tender forgiving spirit was required, even in a Jew, when he approached God’s altar with a bullock or a lamb, how much more necessary is this in a man who professes to be a follower of the Lamb of God; especially when he receives the symbols of that Sacrifice which was offered for the life of the world, in what is commonly called the sacrament of the Lord’s supper!

Ripley 4 Gospel

Since now the cherishing of anger is so great a sin, and exposes to such danger, it ought not for a moment to be indulged; and no duties, however binding and sacred, ought to beheld superior to the duty of obtaining reconciliation, if we have given any person occasion to be unpleasantly affected towards us. The teaching of the Pharisees gave no such prominence to a upright state of heart.

Gift to the altar. Much of the religious observances of the Jews consisted in making offerings to God, and in sacrifices, which were brought to the altar.

Thy brother; any person, as in 22nd verse.

Hath aught against thee; has just cause to find fault with thee. If thou art conscious of having done him wrong, and has thus alienated his affections.