Sunan Ibn Majah, Book 7, Hadith 53 (Ibn Majah 1690)
It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:
“There are people who fast and get nothing from their fast except hunger, and there are those who pray and get nothing from their prayer but a sleepless night.”