When did Solomon sacrifice 22,000 oxen and 120,000 sheep?

When he dedicated the temple

And Solomon offered a sacrifice of peace offerings, which he offered unto the LORD, two and twenty thousand oxen, and an hundred and twenty thousand sheep. So the king and all the children of Israel dedicated the house of the LORD. 1 Kings 8:63