"Umar bin Al Khattab reported the Apostle of Allaah (ﷺ) as saying "Actions are to be judged only by intentions and a man will have only what he intended. When one's emigration is to Allaah and His Apostle, his emigration is to Allaah and His Apostle but his emigration is to a worldly end at which he aims or to a woman whom he marries , his emigration is to that for which he emigrated.
Reference: Sunan Abi Dawud 2201 In-book : Book 13, Hadith 27 English translation : Book 12, Hadith 2195
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.