It does not seem to us that there is any reason not to allow wearing clothing on which are written phrases that promote virtue and good characteristics, or which praise Islam and its rulings and laws.
But one should pay attention to two things with regard to this writing:
1.The phrases should not include the name of Allah. We have drawn attention to this matter in the answer to question no. 1047.
2.It should not be worn by women; rather it should only be for men whose tradition is to wear these types of clothing. The reason why we said that it is not permissible for women to wear these kind of garments is because the aim behind them is to attract attention so that the words may be read, and because they are usually colourful. And it is not appropriate for these to be attributes of women's clothing, as we have explained in the answer to question no. 6991.
For more information, please see the answer to question no. 13240.
And Allah knows best.