Understandably, an individual could not make a valid dedication to God while engaging in any conduct that would exclude him from the Kingdom.
قَبْلَ أَنْ يَعْتَمِدَ ٱلَّذِينَ يَدْرُسُونَ ٱلْكِتَابَ ٱلْمُقَدَّسَ ،‏ عَلَيْهِمْ أَنْ يَتَعَلَّمُوا ٱلْحَقَّ عَنِ ٱللهِ وَقَصْدِهِ وَمَا فَعَلَهُ لِيُخَلِّصَ ٱلْبَشَرَ .‏