Hebrews 12:8

But if ye be without chastisement, whereof all are partakers, then are ye bastards, and not sons.

Cross-reference

In Hebrews 12:6, the Lord's discipline is a sign of love and sonship — directly grounding the warning about illegitimacy here.

Psalm 73:5 Contrast

Psalm 73:5 describes the wicked who face no troubles — the opposite of the discipline that marks true sons here.

Hosea 4:14 Contrast

Hosea 4:14 shows God withholding punishment as judgment — opposite of Heb 12:8 where lack of discipline indicates illegitimacy.