Using the Holy Spirit in order to uncover classified information - as is done with the Urim v'Tumim - is a wonderful thing. But when that information is not forthcoming, using illigitimate means to discover it is a terrible sin... as King Saul tragically discovered for himself.