Allah's Messenger (ﷺ) wrote a letter to Caesar saying, "If you reject Islam, you will be responsible for the sins of the tillers (i.e. your people).
Sahih al-Bukhari Book 56, Hadith 149