Maharoof has taken 14 Championship wickets for Lancashire
Sri Lanka head coach Stuart Law has confirmed that Farveez Maharoof will return to Lancashire after the third Test match against England.
The all-rounder, 26, has been omitted from the one-day squad for the limited-over series which begins on 25 June.
Law told BBC Radio Lancashire: "He hasn't quite set the world on fire but he hasn't done a lot wrong. It just hasn't worked for him at this stage."
Maharoof joined Lancashire in March and has scored 196 Championship runs.
Former Lancashire captain Law says the transition from county cricket to international cricket can be difficult.
"It's been a bit tough, the Lancashire dressing room and the Sri Lankan dressing room as a player I'm sure will be completely different," he said.
"Having seen both, international cricket you've got to get our there and fight for yourself as well as your team.
"In a County Championship or a domestic team back home in Australia it's very much the team."
He's not part of our one-day set up so he will go straight back into the role where he's been playing very well for Lancashire for the rest of the summer
"That might sound harsh on the Sri Lankan boys but unfortunately that's just international cricket."
Maharoof has taken just one wicket in the first two Test matches and Laws added: "It's very much a dog eat dog world and you've got to be mentally and physically tough enough to survive it all.
"Obviously we would have loved him to have taken five wickets every time and getting 50 runs but it just hasn't worked for him at this stage."
Laws, who played for Lancashire between 2002 and 2008, believes the all rounder will continue to have a big impact for the Red Rose this summer.
"He's not part of our one-day set up so he will go straight back into the role where he's been playing very well for Lancashire for the rest of the summer," he said.