The angels questioned Allah in order to find out and learn
Allah, may He be exalted, may be asked for the purpose of learning with humility, or He may be asked for the purpose of seeking guidance and knowledge, but He is not to be questioned by way of objection or disapproval of anything that He does, may He be glorified. The question of the angels was a question that was aimed at learning, for they were aware of the rights of their Lord, and they glorified and praised Him, for they are the ones who do not disobey Allah in what He commands them, and they do as they are commanded.
6,894