Hadith Q2737

نَاوِيًا بِاسْتِلَامِهِ طَاعَةَ اللَّهِ وَتَقَرُّبًا إِلَيْهِ، إِذِ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَدْ أَعْلَمَ أَنَّ لِلْمَرْءِ مَا نَوَى
Not for the one who touches it with the intention of obeying Allah and seeking His closeness, because the Noble Prophet (peace be upon him) has stated that a person will receive only that which he intended.
Hadith Reference صحيح ابن خزيمه / جماع أبواب ذكر أفعال اختلف الناس فى إباحته للمحرم، نصت سنة النبى صلى الله عليه وسلم أو دلت على إباحتها / Q2737