Contradiction with Proverbs 28:9
This verse suggests that God does not hear the prayer of those who turn away from the law, which could contradict with the assurance given to Hannah by Eli in 1 Samuel 1:17.
Proverbs 28:9: He that turneth away his ear from hearing the law, even his prayer [shall be] abomination.
Contradiction with James 4:3
This verse implies prayers are not granted when asked with wrong motives, which could contradict Eli's confirmation that Hannah's petition is granted without mention of her motives.
James 4:3: Ye ask, and receive not, because ye ask amiss, that ye may consume [it] upon your lusts. [lusts: or, pleasures]
Contradiction with 1 John 3:22
This verse states that receiving from God is conditional on keeping His commandments and doing what pleases Him, whereas Eli's assurance in 1 Samuel 1:17 doesn't mention any conditions.
1 John 3:22: And whatsoever we ask, we receive of him, because we keep his commandments, and do those things that are pleasing in his sight.