Putting out fire before going to bed
Abu Musa (radi Allahu anhu) reported: A house in Al-Madinah caught fire at night and the roof and walls fell down upon the occupants. When this was reported to the Messenger of Allah (sal Allahu alaihi wa sallam) he said, “Fire is your enemy; so put it out before you go to bed.”
[Sahih al-Bukhari and Muslim]
The order of the Prophet (sal Allahu alaihi wa sallam) in this Hadith relates to the lamps which produced light by means of oil and wick which can cause fire. Such lamps were used in the time of the Prophet (sal Allahu alaihi wa sallam).
There is no such risk in electric bulbs which are being used in the present age, however some of us may use candles from time to time so this order would relate to us as well.
And Allah Knows Best!