Sahih Bukhari
7501
Narrated Abu Huraira: Allah's Apostle said, Allah says, If My slave intends to do a bad deed then (O Angels) do not write it unless he does it; if he does it, then write it as it is, but if he refrains from doing it for My Sake, then write it..
READ COMPLETE