There’s no ideal age to marriage.
Maturity and ability to control ones emotions is all that matters.
A 23yrs old guy married his 20yrs old girlfriend and 30yrs later they are still together.
And a guy of 45yrs married to a lady of 38yrs marriage might not last