Actions are judged according to intention is part of hadith of An-Nawawi’s collections.