13 The other Jews joined him in his hypocrisy, so that by their hypocrisy even Barnabas was led astray. -Galatians 2:13 BSB
The name Barnabas means “Son of Encouragement.” His real name was Joseph, a Levite, but he was called by the apostles Barnabas due to his character (Acts 4:36-37). He led by example in providing to the ministry of the apostles so that they could continue spreading the gospel of Jesus Christ. The apostles also used the money to help those who came to faith by covering their basic needs.
The Holy Spirit chose Saul, who was also known as Paul, and Barnabas to go to the island of Cyprus to bring the Word of God, the message of salvation, to the Jewish people there (Acts 13:4-5).
Paul witnessed how dangerous compromising one’s faith can be that not only does it have the potential to destroy the person’s faith, but such a faithless decision will take others with them as well. Peter’s hypocrisy impacted Barnabas’ faith, which caused him to fear the Jews, leading him to error, see the commentary of Galatians 2:12.