FilmRise has acquired worldwide distribution rights for the drama “Five Nights in Maine,” starring David Oyelowo, Rosie Perez and Dianne Wiest, Variety has learned exclusively.

The distributor will release the film theatrically in New York, Los Angeles and other cities in the late summer while going day-and-date on digital and VOD platforms.

Maris Curran directed “Five Nights in Maine” from her own script about a young man reeling from the tragic loss of his wife who travels to rural Maine to seek answers from his estranged, cancer-stricken mother-in-law (Wiest). The movie premiered in the Discovery section of the 2015 Toronto Film Festival.

The film is Curran’s feature debut and was produced by Loveless’ Carly Hugo and Matt Parker, Yoruba Saxon’s Oyelowo and Nightshade Films’ Curran. Executive producers are Steven M. Ballerini, Walker Deibel, Glenn Rigberg, and MNM Creative’s Michael Chow and Michael Shen.

“The film explores universal themes of lost love, connection and empathy,” said Curran. “Having shared the film to enthusiastic festival audiences, I am elated that FilmRise will be releasing the film theatrically for a wider audience to discover ‘Five Nights in Maine.'”

Oyelowo starred in Paramount’s “Selma” as Martin Luther King Jr. Wiest played the mother of Tina Fey and Amy Poehler in “Sisters.”

The deal was negotiated by Fisher and FilmRise’s Max Einhorn with CAA.