Saad ibn Malik said: The Messenger of Allah (ص) ordered us to close all the doors of the houses that opened into the mosque but left the door of Ali’s house open.
Haythami writes: This reality has been narrated by Ahmad, Abu Ya’li, Bazzar and Tabarani in Al-Awsat, adding that he said: O Messenger of Allah! You closed our doors and left open the door of Ali's house? The Prophet (ص) said:
"I did not close your doors, but Allah closed them."
Haythami, Maj’mah al-Zawaid, V.9, page 114; Tabarani, Al-Mu’jam Al-Awsat, V.4, page 186. It’s worth mentioning that this hadith regardiing opening of a door and closing of doors is a famous and well-authenticated hadith