My Beloved Son

According to the book of Matthew, the phrase ”my beloved son, in whom I am well pleased” is recorded twice. The first time this phrase was spoken is immediately after Jesus was baptized. What event was taking place the second time this phrase was spoken?