Mishkat al-Masabih

Book 30, Hadith 121

Arabic hadith text
وَعَنِ ابْنِ عَبَّاسٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَمَرَ بِسَدِّ الْأَبْوَابِ إِلَّا بَابَ عَلِيٍّ. رَوَاهُ التِّرْمِذِيُّ وَقَالَ: هَذَا حَدِيثٌ غَرِيبٌ
Translation

Ibn `Abbas told that God's messenger ordered all the doors [opening on the mosque] to be shut except `Ali's. Tirmidhi transmitted it, saying this is a gharib tradition.