When the people arrived in Jerusalem, they purified themselves and worshipped God. They presented their burnt offerings, freewill offerings, and gifts.