It symbolizes firmness and steadfastness. And restrictions are of various types:
Restriction in the Mosque:
Restriction in the Mosque or in the act of salaah or in the path of Allah means the person will be firm in matters of Deen and he will abstain from committing sins.
Restriction in a City, House or Village:
He will marry soon.