Look: everywhere they are pure and free from vainglory; not only do they not seek glory, but they even deflect it from themselves when praise is offered to them. So Peter also said: "Why do you stare at us, as though by our own power or godliness we had made this man walk" (Acts 3:12)? And these apostles say the same thing, but act with a certain fervor: "they tore their clothes and rushed out into the crowd, crying out loudly."
"They tore their garments." The Jews had a custom of tearing their garments when they heard blasphemous words. Thus, when Christ said that He was the Son of God, Caia...phas tore his garment, saying that Christ had uttered blasphemy against God. And since what had now happened was in a certain way blasphemy, following the Jewish custom, the apostles also did the same thing. This custom was rejected because it was not an ordinance of the law. And the Lord said to the Jews when they acted in this manner: "Turn to Me with all your heart, with fasting, weeping, and mourning. Rend your hearts and not your garments" (Joel 2:12–13).
Source: Commentary on Acts