Jami` at-Tirmidhi, Book 49, Hadith 129 (Tirmidhi 3826)

Narrated Ibn 'Abbas:

"The Prophet (ﷺ) ordered that the gates be closed, except the gate of 'Ali."