Sunan Abi Dawud, Book 43, Hadith 221 (Abu Dawud 4995)
Narrated AbuHurayrah:
The Prophet (ﷺ) said: To harbour good thoughts is a part of well-conducted worship. (This is according to Nasr's version). Abu Dawud said: Mahna' is reliable and he is from Basrah.