Matthew and Mark briefly say that after singing a hymn, Jesus and his disciples went out to the Mount of Olives. The detail can seem incidental, but singing praise belonged naturally to Jewish festival worship.
In the Passover setting, the hymn likely reflects psalms traditionally associated with the feast.