The Ruling on Praying in a T-Shirt with Pictures: Is It Still Valid?
In fiqh, praying in a t-shirt with pictures is still valid as long as the garment is free from impurity and covers the awrah. Although valid, the majority of scholars like Ibn Hajar Al-Haitami, Syaikh Ali Raghib, and Syekh Taqiyuddin consider it makruh.
Syekh Taqiyuddin in Kifayat al-Akhyar explains: "It is makruh to wear clothing with pictures during prayer." The reason is that the pictures can distract the wearer or other worshippers from focusing.
The basis for it being makruh also comes from a hadith narrated by Bukhari: The Prophet Muhammad (peace be upon him) once prayed in a patterned garment, and his gaze was diverted. Afterwards, he said, "This garment has distracted me from my prayer," and replaced it with a plain one.
Scholars recommend simple and plain clothing for prayer, especially plain white garments, to help maintain concentration.
https://mozaik.inilah.com/ibad