And We made them chiefs who guide by Our command , and We inspired in them the doing of good deeds and the right establishment of worship and the giving of alms , and they were worshippers of Us ( alone ) .