Contradiction with Jeremiah 7:16
Jeremiah 7:16 contradicts 1 Samuel 1:27 as it instructs not to pray for certain people, while 1 Samuel 1:27 is about a prayer that was heard and granted.
Jeremiah 7:16: Therefore pray not thou for this people, neither lift up cry nor prayer for them, neither make intercession to me: for I will not hear thee.
Contradiction with James 4:3
James 4:3 highlights prayers made out of wrong motives that are not granted, whereas 1 Samuel 1:27 speaks of God granting Hannah's request.
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 Proverbs 15:29
Proverbs 15:29 states that the Lord is far from the wicked but hears the prayers of the righteous, implying that not all prayers are heard, unlike the specific answered prayer in 1 Samuel 1:27.
Proverbs 15:29: The LORD [is] far from the wicked: but he heareth the prayer of the righteous.
Contradiction with Matthew 6:7
Matthew 6:7 warns against vain repetitions in prayer, contrasting with Hannah's sincere prayer in 1 Samuel 1:27.
Matthew 6:7: But when ye pray, use not vain repetitions, as the heathen [do]: for they think that they shall be heard for their much speaking.
Contradiction with Isaiah 1:15
Isaiah 1:15 indicates that God will ignore prayers from those He opposes, which contrasts the answered prayer seen in 1 Samuel 1:27.
Isaiah 1:15: And when ye spread forth your hands, I will hide mine eyes from you: yea, when ye make many prayers, I will not hear: your hands are full of blood. [make...: Heb. multiply prayer] [blood: Heb. bloods]