Origin of Bathing of Buddha Ceremony


I found a few versions on the origin of the bathing of the Buddha ceremony:

  1. to remind us to purify our minds
  2. sages descended and bathed prince Siddhartha when he was born

Can somebody point me to the right version of the origin of the “Bathing the Buddha” ceremony?

Thank you.