How to make an entity slowly go closer to the player

How to make an entity slowly go closer to the player and will deal damage on impact?