The intruder had entered the first-floor hallway of Mr. Cummings’s building at about 3:40 a.m. on Saturday, but did not get into any of the living areas, according to a police report. The intruder, who appeared to be in his 40s, fled on a bicycle when he was confronted by a resident who yelled at him, an officer wrote in the report. No property was stolen and there were no signs of forced entry.

Mr. Cummings, who is serving his 13th term in the House, owns a three-story brick row home in West Baltimore. A tenant lives on the third floor of the property and Mr. Cummings has reported earning between $5,001 and $15,000 in rental income from the property for each year since 2007, according to financial disclosures filed with the House of Representatives.

The burglary was first reported by WJZ, a CBS affiliate in Baltimore.

Mr. Cummings has been a vocal critic of the treatment of children held in migrant detention centers. Less than three hours after the reported burglary occurred, Mr. Trump said on Twitter that Mr. Cummings’s “Baltimore district is FAR WORSE and more dangerous” than conditions at the United States border with Mexico.

Mr. Trump’s comments echoed a recent segment on “Fox & Friends” showing piles of trash in a West Baltimore neighborhood. His comments about crime and mismanagement in the majority-black city led some to accuse Mr. Trump of racism. He responded by calling Mr. Cummings, who has been hailed as a civil rights icon, “racist.”