When was solder made?

The first solder was made and used sometime before 4000 BC.