《宋史·列传·卷一百四十》
南宋皇室外戚宗官长期寄居在泉州郡中，他们仗势欺人，横行霸道，强行役使禁兵数以百计，范如圭到任后依法严惩了这些不法之徒，这些皇室亲属大为恼怒，写了一份极尽诬蔑、诽谤之言的密奏以赶走范如圭，不久范如圭因御旨革职罢官，仍像过去一样领祠禄。
南外宗官寄治郡中，挟势为暴，占役禁兵以百数，如圭以法义正之，宗官大沮恨，密为浸润以去如圭，遂以中旨罢，领祠如故。
The imperial relatives of the Southern Song Dynasty had been living in the prefecture of Quanzhou for a long time. They relied on their power to bully others. They forcibly used hundreds of forbidden soldiers. After taking office, 范如圭 punished these criminals according to the law. These imperial relatives were very angry and wrote a secret memorial full of slander and defamation in an attempt to get rid of 范如圭. Soon after, 范如圭 was dismissed from office by imperial decree, but he continued to receive his salary as before.