Nafi’ reports that he heard Sayyiduna Abd Allah ibn Umar (Allah be pleased with him) say: “I heard the Messenger of Allah (Allah bless him & give him peace) forbidding the practice of Qaz’a”. Ubaid Allah said: “I inquired, what is Qaz’a? So he said: “When the head of a child is shaved and hair is left here and there, and Ubaid Allah pointed towards his forelock and the sides of his head. (Sahih al-Bukhari, No. 5576). Assalamu Alaikum, is this hadith talking about short back and side haircut? Is it makroo to have short back and side if I have size 1 on sides and cutting abit on the top? Will my prayers still be valid if I have short back and side haircut? Note: I don't have the haircut to imitate kufar but I have it because it's neat and tidy. Please answer all of my questions, jazak allah.
All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His Slave and Messenger.
It is noteworthy that shaving the hair has no effect on the validity or acceptance of the prayer whether it is shaved in a permissible or forbidden form.
Allaah knows best.
You can search for fatwa through many choices