Prayer for the disbelieving and the unjust is not permissible
A religious rule of conduct that we learn about here is that one should first find out whether or not the objective for which he is making a prayer is permissible and halal (lawful). It is prohibited to make Du'a (prayer) under doubtful circumstances. Tafsir Ruh al-Ma'ani with reference to al-Baydawi reports that since this verse tells us about the prohibition of Du'a under doubtful circumstances, it is automatically inferred from it that it will be all the more prohibited to pray for anything known to be impermissible and unlawful... Even if the circumstances are doubtful, taking the initiative to make Du'a, without first getting to know the circumstances as they are and the lawfulness of the matter in question, is also not appropriate.
Brotherly relations between believers and disbelievers
2. The second religious ruling that emerges from here is that a believer and a disbeliever may be blood relatives to each other, but when it comes to religious and collective matters, this kinship will have no effect... In religion, everything functionally depends on faith, goodness and the fear of Allah. One who is good in deeds and fears Allah, he is ours. If not like that, he is an alien.
...in worldly matters, demonstrating good social behavior, moral grace, favor and generosity is something different. It is quite permissible to deal even with someone not good with these graces, in fact, it is recommended, and is an act worthy of thawab (reward). Countless instances where the Holy Prophet
and his noble Companions have treated non-Muslims with compassion, favor and good grace are sufficient to prove this.