Rashid conceded defeat while talking to reporters and supporters.
Sharif's ailing wife secured the seat in absentia, as she is undergoing treatment in London for throat cancer.
In a televised address, Sharif's daughter Maryam, surrounded by jubilant supporters, said the win proved people's love for Sharif and rejected his disqualification.
More about: #Pakistan