then one saturday while being tested on her biblical reading , she asked how david could be considered a good and religious man when he committed adultery with bathsheba and then had her husband killed after she became pregnant .