אָ֧ז נִדְבְּר֛וּ יִרְאֵ֥י יְהוָ֖ה אִ֣ישׁ אֶת־רֵעֵ֑הוּ וַיַּקְשֵׁ֤ב יְהוָה֙ וַיִּשְׁמָ֔ע וַ֠יִּכָּתֵב סֵ֣פֶר זִכָּר֤וֹן לְפָנָיו֙ לְיִרְאֵ֣י יְהוָ֔ה וּלְחֹשְׁבֵ֖י שְׁמֽוֹ׃
那時,敬畏永恆者的人彼此談論;永恆者側耳而聽,並且聽見了。在祂面前有一卷紀念冊被記錄下來,是為那些敬畏永恆者、思念祂名的人而寫的。
Sefer HaTashbetz
From all this (the answer to your question) becomes clear. Someone who repents and regrets his sins and wants to immigrate to the Land of Israel: repentance atones; immigration to the Land of Israel adds merit and saves him from sin all (the rest) of his days. And your question, if circumstances beyond his controlled stopped him, and he did not complete his mitzvah, is it still considered a merit for him, as if he did complete it - our sages have already said in the first chapter of Kiddushin (40a), “The Creator joins a good thought to an action, as it is stated: “Then they that feared the Lord spoke one with the other, and the Lord listened, and heard, and a book of remembrance was written before Him, for them that fear the Lord, and that think upon His name” (Malachi 3:16). What is the meaning of the phrase “and that think upon His name”? Rav Asi said: Even if a person intended to perform a mitzva but due to circumstances beyond his control he did not perform it, the verse ascribes him credit as if he performed the mitzva. And may the Omnipresent One help him with his goal, like the king of the Kuzars said to the rabbi when he left him to immigrate to the Land of Israel. (Kuzari 5:28)