Umar bin Khattab reported,

I heard the Messenger of Allah ﷺ say, "Actions are judged only by intentions, and every person will have only what he intended. Whoever's migration was for the sake of Allah and His Messenger, his migration is to Allah and His Messenger. And whoever's migration was for some worldly gain he sought, or a woman he wished to marry, his migration is to whatever he migrated for."

Azami 1542

Sahih

عن عمر بن الخطاب قال

سمعت رسول الله ﷺ يقول: إنما الأعمال بالنيات، وإنما لكل امرئ ما نوى؛ فمن كانت هجرته إلى الله ورسوله فهجرته إلى الله ورسوله، ومن كانت هجرته لدنيا يصيبها، أو امرأة يتزوجها فهجرته إلى ما هاجر إليه.

الأعظمي 1542صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Wudu
Section
Obligation of intention for wudu
Numbering
Jami al-Kamil 1542 (2nd edition)
Azami 1542