All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
It is lawful for a man to marry the woman he likes provided she is not among those forbidden to him by Quran regardless of her age. It is known that the Prophet married Khadeedjah who was much older than he and he married ‘Aa’ishah who was much younger than he.
So, the act of the Prophet is an evidence that both cases are permissible.
However, the Prophet urged men to marry virgin girls. He said: “Why have you not married a virgin, so that you may play with her and she may play with you?” [Al-Bukhari and Muslim]
To conclude, the age difference has no weight in the Sharee’ah.
Allah knows best.