It is narrated in Bihar al-Anwar that Prophet Moses (AS) said, '
O My Lord, what is a sign of Your pleasure with a servant of Yours?' So Allah revealed to him, saying, 'When you see Me preparing My servant for My obedience and averting him from My disobedience, [know that] it is a sign of My pleasure.