If you are without discipline, which all have shared in, then you are illegitimate children and not true sons.
In context
6for the Lord disciplines the one he loves, and he chastises every son he receives.” 7Endure hardship as discipline; God is treating you as sons. For what son is there whom his father does not discipline? 8If you are without discipline, which all have shared in, then you are illegitimate children and not true sons. 9Furthermore, we have all had human fathers who disciplined us, and we respected them for it. How much more, then, should we submit to the Father of spirits and live! 10Our fathers disciplined us for a short time as they thought best, but God disciplines us for our good, so that we may share in his holiness.