إِنَّمَا الْأَعْمَالُ بِالنِّيَّاتِ، وَإِنَّمَا لِكُلِّ امْرِئٍ مَا نَوَى، فَمَنْ كَانَتْ هِجْرَتُهُ إِلَى دُنْيَا يُصِيبُهَا أَوْ إِلَى امْرَأَةٍ يَنْكِحُهَا، فَهِجْرَتُهُ إِلَى مَا هَاجَرَ إِلَيْهِ
Actions are only by intentions, and each person has only what he intended. So whoever emigrated for some worldly thing he wanted, or a woman he wanted to marry, his emigration is for what he emigrated for.
Al-Bukhari placed this hadith first in his Sahih. In other chains it also says: whoever emigrated for Allah and His Messenger, his emigration is for Allah and His Messenger (Sahih Muslim 1907).
إِنَّ اللَّهَ لاَ يَنْظُرُ إِلَى صُوَرِكُمْ وَأَمْوَالِكُمْ وَلَكِنْ يَنْظُرُ إِلَى قُلُوبِكُمْ وَأَعْمَالِكُمْ
Allah does not look at your appearance or your wealth. He looks at your hearts and your deeds.
إِنَّ اللَّهَ كَتَبَ الْحَسَنَاتِ وَالسَّيِّئَاتِ، ثُمَّ بَيَّنَ ذَلِكَ فَمَنْ هَمَّ بِحَسَنَةٍ فَلَمْ يَعْمَلْهَا كَتَبَهَا اللَّهُ لَهُ عِنْدَهُ حَسَنَةً كَامِلَةً، فَإِنْ هُوَ هَمَّ بِهَا فَعَمِلَهَا كَتَبَهَا اللَّهُ لَهُ عِنْدَهُ عَشْرَ حَسَنَاتٍ إِلَى سَبْعِمِائَةِ ضِعْفٍ إِلَى أَضْعَافٍ كَثِيرَةٍ، وَمَنْ هَمَّ بِسَيِّئَةٍ فَلَمْ يَعْمَلْهَا كَتَبَهَا اللَّهُ لَهُ عِنْدَهُ حَسَنَةً كَامِلَةً، فَإِنْ هُوَ هَمَّ بِهَا فَعَمِلَهَا كَتَبَهَا اللَّهُ لَهُ سَيِّئَةً وَاحِدَةً
Allah has written the good deeds and the bad deeds, and then made it clear. Whoever intends a good deed and does not do it, Allah writes it with Him as one complete good deed. If he intends it and does it, Allah writes it with Him as ten good deeds, up to seven hundred times, up to many times more. Whoever intends a bad deed and does not do it, Allah writes it with Him as one complete good deed. If he intends it and does it, Allah writes it as one bad deed.
مَنْ سَأَلَ اللَّهَ الشَّهَادَةَ بِصِدْقٍ بَلَّغَهُ اللَّهُ مَنَازِلَ الشُّهَدَاءِ وَإِنْ مَاتَ عَلَى فِرَاشِهِ
Whoever sincerely asks Allah for martyrdom, Allah will raise him to the ranks of the martyrs, even if he dies in his bed.
إِذَا أَنْفَقَ الرَّجُلُ عَلَى أَهْلِهِ يَحْتَسِبُهَا فَهُوَ لَهُ صَدَقَةٌ
When a man spends on his family hoping for the reward, it is charity for him.
إِنَّكَ لَنْ تُنْفِقَ نَفَقَةً تَبْتَغِي بِهَا وَجْهَ اللَّهِ إِلَّا أُجِرْتَ عَلَيْهَا حَتَّى مَا تَجْعَلُ فِي فَمِ امْرَأَتِكَ
You will never spend anything seeking the pleasure of Allah except that you will be rewarded for it, even what you put in your wife's mouth.
إِنَّ أَقْوَامًا بِالْمَدِينَةِ خَلْفَنَا، مَا سَلَكْنَا شِعْبًا وَلاَ وَادِيًا إِلاَّ وَهُمْ مَعَنَا فِيهِ، حَبَسَهُمُ الْعُذْرُ
(During an expedition he said:) There are people in Madinah behind us who were with us in every mountain pass and valley we crossed. Only an excuse held them back.
Sahih Muslim 1911 has the same from Jabir: "illness held them back", and "they share the reward with you".
إِنَّ أَوَّلَ النَّاسِ يُقْضَى يَوْمَ الْقِيَامَةِ عَلَيْهِ رَجُلٌ اسْتُشْهِدَ فَأُتِيَ بِهِ فَعَرَّفَهُ نِعَمَهُ فَعَرَفَهَا قَالَ فَمَا عَمِلْتَ فِيهَا قَالَ قَاتَلْتُ فِيكَ حَتَّى اسْتُشْهِدْتُ، قَالَ كَذَبْتَ وَلَكِنَّكَ قَاتَلْتَ لأَنْ يُقَالَ جَرِيءٌ، فَقَدْ قِيلَ، ثُمَّ أُمِرَ بِهِ فَسُحِبَ عَلَى وَجْهِهِ حَتَّى أُلْقِيَ فِي النَّارِ وَرَجُلٌ تَعَلَّمَ الْعِلْمَ وَعَلَّمَهُ وَقَرَأَ الْقُرْآنَ فَأُتِيَ بِهِ فَعَرَّفَهُ نِعَمَهُ فَعَرَفَهَا قَالَ فَمَا عَمِلْتَ فِيهَا قَالَ تَعَلَّمْتُ الْعِلْمَ وَعَلَّمْتُهُ وَقَرَأْتُ فِيكَ الْقُرْآنَ، قَالَ كَذَبْتَ وَلَكِنَّكَ تَعَلَّمْتَ الْعِلْمَ لِيُقَالَ عَالِمٌ، وَقَرَأْتَ الْقُرْآنَ لِيُقَالَ هُوَ قَارِئٌ
The first of people to be judged on the Day of Resurrection is a man who was martyred. He will be brought, Allah will remind him of His blessings and he will acknowledge them. Allah will say: What did you do with them? He will say: I fought for You until I was martyred. He will say: You lie. You fought so that it would be said you are brave, and it was said. Then he will be ordered to be dragged on his face until he is thrown into the Fire. And a man who learned knowledge and taught it and recited the Quran. He will be brought, reminded of His blessings and will acknowledge them. Allah will say: What did you do with them? He will say: I learned knowledge and taught it and recited the Quran for You. He will say: You lie. You learned so that it would be said you are a scholar, and you recited so that it would be said he is a reciter.
The hadith goes on to the same end for him, and then for a rich man who gave so that he would be called generous.
قَالَ اللَّهُ تَبَارَكَ وَتَعَالَى أَنَا أَغْنَى الشُّرَكَاءِ عَنِ الشِّرْكِ مَنْ عَمِلَ عَمَلاً أَشْرَكَ فِيهِ مَعِي غَيْرِي تَرَكْتُهُ وَشِرْكَهُ
Allah, blessed and exalted is He, said: I am the One most free of need of any partner. Whoever does a deed in which he associates someone else with Me, I leave him and his association.
يُخْسَفُ بِأَوَّلِهِمْ وَآخِرِهِمْ، ثُمَّ يُبْعَثُونَ عَلَى نِيَّاتِهِمْ
(An army will march on the Kaaba and the earth will swallow them. Aishah asked about those among them who were not of them. He said:) The first and last of them will be swallowed, then they will be raised according to their intentions.
إِذَا الْتَقَى الْمُسْلِمَانِ بِسَيْفَيْهِمَا فَالْقَاتِلُ وَالْمَقْتُولُ فِي النَّارِ ... إِنَّهُ كَانَ حَرِيصًا عَلَى قَتْلِ صَاحِبِهِ
When two Muslims meet each other with their swords, the killer and the one killed are in the Fire. (I said: This is the killer, but what about the one killed? He said:) He was eager to kill his companion.
لاَ هِجْرَةَ بَعْدَ الْفَتْحِ وَلَكِنْ جِهَادٌ وَنِيَّةٌ، وَإِذَا اسْتُنْفِرْتُمْ فَانْفِرُوا
There is no emigration after the conquest of Makkah, but there is striving and intention. When you are called to go out, then go out.