the prophet once told one of his wives something in confidence. she did not keep it secret and god informed him of this he made known a part of it and avoided part of it. when he spoke to his wife of this she asked him who had told him about it. he replied the all knowing the all aware one.
وإذ أسر النبي إلى بعض أزواجه حديثا فلما نبأت به وأظهره الله عليه عرف بعضه وأعرض عن بعض فلما نبأها به قالت من أنبأك هذا قال نبأني العليم الخبير