It is narrated from Hazrat Aisha that when the Prophet (peace be upon him) would enter his house at night, the first thing he would do was use the miswak, and when he would leave the house, the last thing he would do before leaving was to perform the two rak'ahs before Fajr.