"The Prophet (ﷺ) ordered that the gates be closed, except the gate of 'Ali."
Jami` at-Tirmidhi Book 49, Hadith 129