He went as far as the gate of the palace, for no one was allowed to enter the palace gate while wearing clothes of mourning.