This question came up in the Online 10-day Retreat Nov 3, 2020, guided by Delson Armstrong. Day 3 was part of a daily 30 -minute discussion on the suttas, the Dhamma talk and reflections.
Slightly edited to improve readability
Up to the level of anagami [or Non-returner, the third stage of the four stages of Nibbana], there is an attachment to the Dhamma. This will be a little deeper, once you get into day seven and eight, but essentially, it’s about understanding the purposes of the Dhamma.
Understanding the Dhamma is meant to be a raft, it’s the simile of the raft; you use the Dhamma to get across to the other shore, to get to Nibbana, to get to arahantship. But if you take the raft with you, when you get to the other shore, and start carrying it on your back while you’re walking; that doesn’t make any sense.
In the same way, once you have used the Dhamma, utilized the principles of the Dhamma to get to the goal, – which is arahantship – you no longer even have any attachment to the Dhamma itself. The Dhamma also is an impersonal phenomenon.
But for the anagami , it’s said they will be an anagami because they keep relishing in the Dhamma. In a lot of different suttas, you’ll see it says; by not grasping even to the Dhamma, their minds will be liberated from the Taints, the Defilements. There were some who relished, or took delight in it, and so became anagamis. So, that’s really dhammaraga, the passion for the Dhamma.
When you get to the stage of an anagami, that’s what you need to work on; relieve the mind from its attachment to the Dhamma.