The secret to becoming a friend of Allah is truthfulness, humanity, and piety. Loving Allah, strengthening faith, and helping the needy can make a person a close friend of Allah.