بسم الله الرحمن الرحيم
According to Shariah, it is correct to keep the name Muhammad Ibrahim and it is also correct to attach family surname with it, there is no harm.
Allah knows Best!
Darul Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.