It is narrated from Ata that the Prophet (peace and blessings be upon him) went out to al-Safa through the gate of Banu Makhzum.