Mark 10:5

And Jesus answered and said unto them, For the hardness of your heart he wrote you this precept.

Cross-reference

In Matthew 19:8, the same explanation is given: Moses permitted divorce because of hardness of heart.

Matthew 5:32 gives Jesus' stricter divorce teaching, contrasting with the permission Moses granted here.