a religious obligation , zakat is also considered an expression of devotion to god , representing as it does the act of providing for the poor and a means for the muslim to purify his or her wealth , and so attain salvation .