Hanafis place siwak among the sunnahs of wudu, while Shafi‘i discussions particularly connect it with prayer. Both recognize its merit; the difference concerns how to classify its occasion.
A narration encourages siwak at every wudu, while another wording mentions every prayer. These two report wordings inform the respective emphases.