(CNN) Two top officials with US Customs and Border Protection firmly stated Tuesday that they would abide by the law in hearing asylum claims at the southern border if President Donald Trump were to order agents to bar migrants from seeking asylum.

During a hearing before the Senate Homeland Security Committee, Randy Howe, the executive director of CBP's Office of Field Operations, said the agency would be "bound" to hear from individuals claiming asylum if they cross into the United States at a port of entry.

"If they enter the United States across the boundary line at the port of entry and they claim asylum, we would be bound to hear that asylum claim," Howe told the committee.

CNN reported that when Trump visited Calexico, California, last Friday, he told border agents to not let migrants in. After Trump left, agents sought further advice from their leaders, who told them they were not giving them that direction.

Democratic Sen. Jacky Rosen of Nevada asked Howe and Rodolfo Karisch, the chief patrol agent of the Rio Grande Valley sector, on Tuesday if they would be following instructions from the President.

Read More