A Bay Shore man was charged Friday with driving while intoxicated with his 3-year-old daughter in his car, State Police said.

New York State troopers stopped Muhammad Yousaf, 30, at a sobriety checkpoint in Bay Shore, where they arrested him on a charge of driving while intoxicated under Leandra’s Law, according to a police news release.

The child was released to her mother, police said.

Yousaf was arraigned Saturday in First District Court in Central Islip, according to online court records. He is represented by an attorney from Legal Aid, which does not comment.

He was charged with felony aggravated DWI with a child and six lesser charges, online records show. The court issued a temporary order of protection, and Yousaf was held on $15,000 bond or $7,500 cash, according to online records.

advertisement | advertise on newsday

Under Leandra’s Law, passed in 2009, drivers who are intoxicated or impaired by drugs with a child younger than 16 in the vehicle can be charged with a felony. The law was passed after the death of Leandra Rosado, 11, who was killed Oct. 11, 2009, in a DWI accident after the minivan in which she was a passenger crashed on the West Side Highway in Manhattan.

State Police also arrested a 35-year-old Bay Shore woman Friday on a charge of driving while intoxicated on the Southern State Parkway, the release said.