Jesus said this while he was teaching in the synagogue in Capernaum.
John 6:59, Readable English Bible (READ)