Where is allegiance to the Mahdī described?

Signs of the Last Hour: Minor and Major Signs