Jami` at-Tirmidhi, Book 48, Hadith 241 (Tirmidhi 3694)
Umar bin Abi Salamah narrated from his father, who said:
“The Messenger of Allah (ﷺ) said: ‘Let one of you look at what it is that he wishes for. For verily, he does not know what of his wish shall be recorded.’”