How is Malebranche’s occasionalism similar to Hume’s view of cause and effect?

Malebranche claims: “I tell you that so far from being more closely joined to the body than to anything else, we are in no way united to it.” Explain what Malebranche means by this claim, and critically discuss why he maintains that a ‘union’ is impossible. Does he offer a viable solution to the problem of mind-body interaction? You may also wish to consider his influence: How is Malebranche’s occasionalism similar to Hume’s view of cause and effect?

https://archive.org/details/B-001-001-325/page/n23/mode/2up
Malebranche on page 230, not limited to this source