We made them imams , guiding by Our command , and We revealed to them [ concerning ] the performance of good deeds , the maintenance of prayers , and the giving of zakat , and they used to worship Us .