[Machine] The Messenger of Allah ﷺ ordered for all the doors of the mosque to be closed except for the door of Ali. Abbas said, "O Messenger of Allah, as much as I enter alone, I also exit alone." He replied, "I was not commanded to do anything in regards to that." So all the doors were closed except for the door of Ali, and it could be that he passed while in a state of impurity.
أَمَرَ رَسُولُ اللهِ ﷺ بِسَدِّ أَبْوَابِ الْمَسْجِدِ كُلِّهَا غَيْرَ بَابِ عَلِيٍّ ؓ فَقَالَ الْعَبَّاسُ يَا رَسُولَ اللهِ قَدْرَ مَا أدْخُلُ أَنَا وَحْدِي وَأَخْرَجُ قَالَ «مَا أُمِرْتُ بِشَيْءٍ مِنْ ذَلِكَ» فَسَدَّهَا كُلَّهَا غَيْرَ بَابِ عَلِيٍّ وَرُبَّمَا مَرَّ وَهُوَ جُنُبٌ