“And when the king came in to see the guests, he saw there a man which had not on a wedding garment: And he saith unto him, Friend, how camest thou in hither not having a wedding garment? And he was speechless. Then said the king to the servants, Bind him hand and foot, and take him away, and cast him into outer darkness; there shall be weeping and gnashing of teeth. For many are called, but few are chosen.”- Matthew 22:11-14
The wedding garment is simply mentioned here as being a test of loyalty to those who came to the marriage feast, and as a mode by which rebellion was avowed and loyalty made apparent. Here was a man then who came into the gospel feast, and yet refused to comply with the command which related to that feast. He willfully preferred self to God, his heart was full of enmity and pride, he despised the gifts of grace, he scorned the rule of love, he stood a defiant rebel even at the banquet of mercy which his king had spread.
His sin lay, first of all, in coming in there at all without the wedding garment. If he did not mean to be of one heart with his fellow guests and his lord, why did he come? If a man does not intend to yield himself up to God’s will, why does he profess to be of God’s Church? If a man is not saved by the righteousness of Christ, why does he profess to be a believer in Christ? If he will not be obedient to Christ’s holy will, why does he pretend to be follower of Christ? It is a grave mistake for any person to imagine that he can be in the Church of God to his own advantage unless his heart is renewed, unless he means what he declares, and sincerely loves the rule under which he professes to put himself. ~ C.H. Spurgeon
https://www.blueletterbible.org/Comm/spurgeon_charles/sermons/0976.cfm