In the name of Allah, Most Gracious, Most Merciful.
Omar ibn Al-Khattab (May Allah be satisfied with him) said: I heard Allah’s Messenger (May Allah exalt his mention and protect him from imperfection) saying: “The reward of deeds depends upon the intentions and every person will be rewarded according to what he intended. So whoever emigrates for worldly benefits or for to marry woman, his emigration will be for what he emigrated for.” (Agreed upon)
Riyaadiss-Saliheen (The Meadows of the Righteous) (Abridged)
By Imam An Nawawi Vol. (1)
Publisher: Dar Al-Manarah
Chapter 1, Page 70, Number 1