A hadith like this has been reported from the Messenger of Allah (ﷺ) by 'Abd al-Malik with the same chain of transmitters in connection with fast.