Theodicy
From “Tota Scriptura”, Joey Day’s personal Scripture topic index wiki
Theodicy is any attempt to address the problem of evil and answer the question why a just God would permit evil.
God is not the author of sin
Ge 18:25; Dt 32:4; Job 34:10; Ps 5:4; 145:17; Eze 33:17–20; Hab 1:13; Jas 1:13, 17; 1Jn 1:5; Rev 16:5–7