What does Matthew 5:24 mean?
Jesus has shown how deeply God cares about the hearts of His people. In recent examples, He has placed inner attitudes, like anger, into the same category of "sin" as murder (Matthew 5:21–22). In fact, Jesus said that one who angrily insults or condemns another in anger is liable to the hell of fire. Avoiding unresolved conflict is so important, in fact, that even the most sacred action should be postponed until a reconciliation can be made with another person (Matthew 5:23).In the previous verse, Jesus placed responsibility on the person who realizes they've given another person cause to be angry. Christ's instruction is to "leave your gift" at the altar instead of finishing what you're doing. Go to your "brother," whether literally or simply a friend or associate, and make things right as soon as possible. Don't wait. Then come back and finish your worship after you've sought reconciliation.
The broad principle of these verses is that our hearts are not right with God if they are not right with each other. We can't worship God with a sincere spirit if we are unrepentant about causing another person legitimate offense.