The sound evidence indicates that the shaytaan is close to man, and indeed he flows through him like blood, so he whispers to him at moments of heedlessness and withdraws from him when he remembers Allah. Through this constant closeness he knows what whims and desires occur to man, so he makes them appear attractive to him and he whispers to him regarding them.