The first recorded example of having to “quarantine” was written by The Ragusan Republic.

The Ragusan Republic, modern-day Dubrovnik, Croatia, was the first city to implement a compulsory 30-day quarantine for anyone traveling from a high infected plague area.

Source