When the Prophet (ﷺ) got up to pray at night, he would brush his teeth with the siwak.

Sunan an-Nasa'i Book 20 Hadith 24

Sunan an-Nasa'i #1621

The Book of Qiyam Al-Lail (The Night Prayer) and Voluntary Prayers During the Day 20:24

It was narrated from Hudhaifah that:

When the Prophet (ﷺ) got up to pray at night, he would brush his teeth with the siwak.

Chapter: Using siwak when getting up to pray at night

Grade: Sahih (Darussalam)