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.
Sunan Abi Dawud Book 43, Hadith 221