The Synoptic Gospels tell of this happening near the end of Jesus' life. It was one of the reasons that the Jewish leaders opposed Jesus. The Gospel of John puts it near the beginning of the three year ministry of Jesus. This makes some Bible scholars think this happened two times and others think it refers to a single time.