Aslam Alaikum, I wanted to ask you if it's allowed to do dikhr on behalf of someone who lacks faith (non-Muslim) and pray to Allah tala to give them the reward of dikhr? Will Allah tala give them the reward? I know it's a very stupid question but I care about this person and I want them to go to jannat and I want Allah tala to be happy with them and not angry on the day of judgment.
Alaikumassalam wa rahmatullah,
I have not seen anything on the validity of performing good deeds for the sake of non-believers. But it would be a much safer choice if you pray for their guidance and forgiveness. A good deed done for them is just one good deed, while if they are guided that would be a lifetime of good deeds for them.