This Bible contradiction is from the Skeptic's Annotated Bible.
Verses
Christians should not pray in public.
Matthew 6:5-6 View context
And when thou prayest, thou shalt not be as the hypocrites [are]: for they love to pray standing in the synagogues and in the corners of the streets, that they may be seen of men. Verily I say unto you, They have their reward.
But thou, when thou prayest, enter into thy closet, and when thou hast shut thy door, pray to thy Father which is in secret; and thy Father which seeth in secret shall reward thee openly.
Christians should pray in public.
John 11:41-42 View context
Then they took away the stone [from the place] where the dead was laid. And Jesus lifted up [his] eyes, and said, Father, I thank thee that thou hast heard me.
And I knew that thou hearest me always: but because of the people which stand by I said [it], that they may believe that thou hast sent me.
1 Timothy 2:8 View context
I will therefore that men pray every where, lifting up holy hands, without wrath and doubting.