Marriage in itself is not a pre-condition of Hajj. A person should decide whether to marry or perform Hajj first depending on the extent of his need for marriage. If giving priority for Hajj will not negatively affect his morals, then it is good for him to perform Hajj first.
Sheikh Ahmad Kutty, a senior lecturer and an Islamic scholar at the Islamic Institute of Toronto, Ontario, Canada , states:
The aim is to purify and cleanse oneself before marriage is commendable. A muslim should do so if that is the goal set to be achieved. Hajj, as the Prophet (peace and blessings be upon him) has told us, is a sure means of self-cleansing and purification. This is so provided that we do it in the correct way and are virtuous; abstaining from all acts of immorality, obscenities and argumentation.