In 2 Samuel 24 God judges Israel as David counts the people. As a result the Prophet Gad tells David that he has a choice of 3 evils.