Ablution water and tooth-stick were placed by the side of the Prophet ﷺ. When he got up during the night (for prayer), he relieved himself, then he used the tooth-stick.
أَنَّ النَّبِيَّ ﷺ كَانَ يُوضَعُ لَهُ وَضُوءُهُ وَسِوَاكُهُ فَإِذَا قَامَ مِنَ اللَّيْلِ تَخَلَّى ثُمَّ اسْتَاكَ