Praise be to Allah.
Yes, it is permissible for you to give sadaqah on behalf of your Muslim brother even if he commits some sins. We ask Allah to reward you for doing that.
There is no doubt that they will know on the Day of Resurrection that you have given in charity on their behalf.
Comment