Friendship in the demand of religion